puppet源码安装部署-创新互联-成都快上网建站

puppet源码安装部署-创新互联

一、安装环境

公司主营业务:成都做网站、成都网站设计、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。成都创新互联公司是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。成都创新互联公司推出阜南免费做网站回馈大家。

系统环境

CentOS release 6.8 (Final)

2.6.32-642.1.1.el6.x86_64

编译环境

gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)

二、源码编译Puppet

步骤1 Ruby的安装

wget https://codeload.github.com/ruby/ruby/zip/ruby_1_8_7

unzip ruby-ruby_1_8_7.zip

cd ruby-ruby_1_8_7

run autoconf to (re)generate configure.

./configure --prefix=/usr/local/puppet-2.7.25

make

make install

出现如下错误:

  1. ossl_pkey_ec.c:761: warning: assignment makes pointer from integer without a cast

  2. ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)

  3. ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once

  4. ossl_pkey_ec.c:815: error: for each function it appears in.)

解决办法:

该问题在ruby网站上已经提交并有了补丁。

参见链接:https://bugs.ruby-lang.org/issues/8384

vi ext/openssl/ossl_pkey_ec.c

 760 #if !defined(OPENSSL_NO_EC2M)

 761       } else if (id == s_GF2m_simple) {

 762         method = EC_GF2m_simple_method();

 763 #endif

.......

 816 #if !defined(OPENSSL_NO_EC2M)

 817       } else if (id == s_GF2m) {

 818         new_curve = EC_GROUP_new_curve_GF2m;

 819 #endif

步骤2 安装Ruby的扩展支持及手动导入系统环境变量

export PATH=$PATH:/usr/local/puppet/bin:/usr/local/puppet/sbin

[root@puppet ruby-ruby_1_8_7]# ruby -r base64 -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r cgi -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r digest/md5 -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r etc -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r fileutils -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r ipaddr -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r openssl -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r strscan -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r syslog -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r uri -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r webrick -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r webrick/https -e "puts:installed"

installed

[root@puppet ruby-ruby_1_8_7]# ruby -r xmlrpc/client -e "puts:installed"

installed

步骤3 安装ruby-shadow

wget https://codeload.github.com/apalmblad/ruby-shadow/zip/2.1.4

unzip ruby-shadow-2.1.4.zip

cd ruby-shadow-2.1.4

ruby extconf.rb

make

make install

步骤4 安装Facter

wget https://codeload.github.com/puppetlabs/facter/zip/1.7.4

unzip facter-1.7.4.zip

cd facter-1.7.4

ruby install.rb

步骤5 安装Puppet

wget https://codeload.github.com/puppetlabs/puppet/zip/2.7.x

unzip puppet-2.7.x.zip

cd puppet-2.7.x

ruby install.rb --full

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


分享文章:puppet源码安装部署-创新互联
分享地址:http://kswjz.com/article/digojg.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流