二.安装应用软件(server,client):
(server):
1.安装facter:
# wget
# tar zxvf facter-1.6.5.tar.gz
# cd facter-1.6.5
# ruby install.rb
2.安装puppet:
# wget
# tar zxvf puppet-2.6.13.tar.gz
# cd puppet-2.6.13
# ruby install.rb
# cp conf/auth.conf /etc/puppet/
# cp conf/RedHat/fileserver.conf /etc/puppet/
# cp conf/redhat/puppet.conf /etc/puppet/
# mkdir -p /etc/puppet/manifests
设置开机启动脚本:
# cp conf/redhat/server.init /etc/init.d/puppetmaster
# chmod +x /etc/init.d/puppetmaster
# chkconfig --add puppetmaster
# chkconfig puppetmaster on
生成pupput用户:
# puppetmasterd --mkusers
启动puppetmaster服务(端口:8140):
# service puppetmaster start
(client):
1.安装facter:
# wget
# tar zxvf facter-1.6.5.tar.gz
# cd facter-1.6.5
# ruby install.rb
2.安装puppet:
# wget
# tar zxvf puppet-2.6.13.tar.gz
# cd puppet-2.6.13
# ruby install.rb
# cp conf/auth.conf /etc/puppet/
# cp conf/namespaceauth.conf /etc/puppet/
# cp conf/redhat/puppet.conf /etc/puppet/
设置开机启动脚本:
# cp conf/redhat/client.init /etc/init.d/puppet
# chmod +x /etc/init.d/puppet
# chkconfig --add puppet
# chkconfig puppet on
# vi /etc/puppet/puppet.conf
在[agent]条目下添加以下内容:
-------
Listen = true
Server = server.example.com
--------
# vi /etc/puppet/namespaceauth.conf
修改成以下内容:
---------
[fileserver]
allow *
[puppetmaster]
allow *
[puppetrunner]
allow *
[puppetbucket]
allow *
[puppetreports]
allow *
[resource]
allow *
---------
生成pupput用户:
# puppetmasterd --mkusers
启动puppet服务(端口:8140):
# /etc/init.d/puppet start
至此安装完毕,现在需要配置客户端与服务器端的认证连接,从而将服务器端的配置的内容分发到各个客户端,实现集中配置管理。