Puppet是很好的数据中心管理服务器群的开源软件,关于Puppet,网上介绍很多。我录下自己的安装步骤,供查询和碰到同样问题的人们速查。
4 for CentOS 4.x(只支持agent)
http://download.fedora.redhat.com/pub/epel/
augeas-libs-0.10.0-2.el4.i386.rpm
ruby-libs-1.8.1-7.EL4.1.i386.rpm
ruby-augeas-0.4.1-1.el4.i386.rpm
ruby-1.8.1-7.EL4.1.i386.rpm
facter-1.5.9-1.el4.i386.rpm
puppet-0.25.6-1.el4.i386.rpm
rpm -ivh augeas-libs-0.10.0-2.el4.i386.rpm
rpm -ivh ruby-libs-1.8.1-7.EL4.1.i386.rpm
rpm -ivh ruby-augeas-0.4.1-1.el4.i386.rpm
rpm -ivh ruby-1.8.1-7.EL4.1.i386.rpm
rpm -ivh facter-1.5.9-1.el4.i386.rpm
rpm -ivh puppet-0.25.6-1.el4.i386.rpm连接master时,抱错no default provider for file error:并且没有自动创建/var/lib/puppt/ssl。这是因为别的ruby版本兼容性不好,删除/usr/lib/site_ruby/1.8然后重装ruby-1.8.1-7.EL4.1.i386.rpm, facter-1.5.9-1.el4.i386.rpm, puppet-0.25.6-1.el4.i386.rpm。
SSL证书问题:
rm -f /var/lib/puppet/ssl/*/*.*(client)
rm -f /var/lib/puppet/ca/signed/$clientHostname.*(server)
重新连接即可。
augeas-libs-0.10.0-2.el4.i386.rpm
ruby-libs-1.8.1-7.EL4.1.i386.rpm
ruby-augeas-0.4.1-1.el4.i386.rpm
ruby-1.8.1-7.EL4.1.i386.rpm
facter-1.5.9-1.el4.i386.rpm
puppet-0.25.6-1.el4.i386.rpm
rpm -ivh augeas-libs-0.10.0-2.el4.i386.rpm
rpm -ivh ruby-libs-1.8.1-7.EL4.1.i386.rpm
rpm -ivh ruby-augeas-0.4.1-1.el4.i386.rpm
rpm -ivh ruby-1.8.1-7.EL4.1.i386.rpm
rpm -ivh facter-1.5.9-1.el4.i386.rpm
rpm -ivh puppet-0.25.6-1.el4.i386.rpm连接master时,抱错no default provider for file error:并且没有自动创建/var/lib/puppt/ssl。这是因为别的ruby版本兼容性不好,删除/usr/lib/site_ruby/1.8然后重装ruby-1.8.1-7.EL4.1.i386.rpm, facter-1.5.9-1.el4.i386.rpm, puppet-0.25.6-1.el4.i386.rpm。
SSL证书问题:
rm -f /var/lib/puppet/ssl/*/*.*(client)
rm -f /var/lib/puppet/ca/signed/$clientHostname.*(server)
重新连接即可。
5 for CentOS 5.x
yum
/etc/yum.repos.d/CentOS-Base.repo
URL to http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
yum install ruby rdoc
yum install puppet-server(master)
yum install puppet(agent)
yum
/etc/yum.repos.d/CentOS-Base.repo
URL to http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
yum install ruby rdoc
yum install puppet-server(master)
yum install puppet(agent)
本文转自 dannyy1026 51CTO博客,原文链接:
http://blog.51cto.com/dannyyuan/772993