Puppet 2.7安装配置与扩展(2)

/usr/local/ruby-1.9/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby。

openssl安装:

tar -xf openssl-1.0.1c.tar.gz && cd openssl-1.0.1c

./config --prefix=/usr/local/openssl-1.0.1 -fPIC

make && make install

ruby安装:

tar -xf ruby-1.9.3-p286.tar.gz && cd ruby-*

./configure --prefix=/usr/local/ruby-1.9

make && make install

echo 'export PATH=$PATH:/usr/local/ruby-1.9/bin:/usr/local/ruby-1.9/sbin/' >>/etc/profile

source /etc/profile

facter安装:

tar –xf facter-1.6.13.tar.gz && cd facter-*

ruby install.rb

facter安装时可能遇到的错误:

 

Could not load openssl Ruby library; cannot install

解决办法:进入ruby的源码目录下的ext/openssl,执行ruby extconf.rb命令。具体如下:

cd ruby-1.9.3-p286/ext/openssl

ruby extconf.rb --with-openssl-lib=/usr/local/openssl-1.0.1/lib/ --with-openssl-include=/usr/local/openssl-1.0.1/include/

make && make install

puppet开源版安装,可以选择官方网站下载,也可以到github下载,两个地址如下:

https://github.com/puppetlabs/puppet

tar -xf puppet-2.7.19.tar.gz && cd puppet-*

ruby install.rb

cp conf/RedHat/* /etc/puppet

接下来请看第2页精彩内容

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/950e6f9501ed029b516a38481ddb5ff7.html