客户端


客户端环境


[root@web01~]#lsb_release-aLSBVersion::core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributorID:CentOSDescription:CentOSrelease5.9(Final)Release:5.9Codename:Final[root@web01~]#cat/etc/redhat-releaseCentOSrelease5.9(Final)[root@web01~]#uname-aLinuxweb012.6.18-348.el5#1SMPTueJan817:53:53EST2013x86_64x86_64x86_64GNU/Linux

安装:

[root@web01~]#mkdirsoft[root@web01~]#cdsoft/[root@web01soft]#wgethttp://puppetlabs.com/downloads/facter/facter-1.7.0.tar.gz[root@web01soft]#wgethttp://puppetlabs.com/downloads/puppet/puppet-2.7.21.tar.gz[root@web01soft]#yum-yinstallrubyruby-develruby-libsruby-shadow[root@web01soft]#tarxfpuppet-2.7.21.tar.gz[root@web01soft]#tarxffacter-1.7.0.tar.gz[root@web01soft]#cdfacter-1.7.0[root@web01facter-1.7.0]#./install.rb[root@web01facter-1.7.0]#cd../puppet-2.7.21[root@web01puppet-2.7.21]#./install.rb[root@web01puppet-2.7.21]#cpconf/namespaceauth.conf/etc/puppet/[root@web01puppet-2.7.21]#cpconf/redhat/puppet.conf/etc/puppet/[root@web01puppet-2.7.21]#cpconf/redhat/client.init/etc/init.d/puppet[root@web01puppet-2.7.21]#chmod+x/etc/init.d/puppet[root@web01puppet-2.7.21]#chkconfigpuppeton[root@web01puppet-2.7.21]#chmod644/etc/passwd[root@web01puppet-2.7.21]#chmod644/etc/shadow[root@web01puppet-2.7.21]#chmod644/etc/group[root@web01puppet-2.7.21]#chmod644/etc/gshadow[root@web01puppet-2.7.21]#puppetmasterd--mkusers


添加hosts

[root@web01puppet-2.7.21]#vim/etc/hosts添加server127.0.0.1localhost.localdomainlocalhostweb01::1localhost6.localdomain6localhost6172.16.10.252Centos-server172.16.10.2web01

[root@web01~]#vim/etc/puppet/puppet.confListen=trueServer=Centos-server


[root@web01puppet-2.7.21]#vim/etc/puppet/namespaceauth.conf[fileserver]allow*[puppetmaster]allow*[puppetrunner]allow*[puppetbucket]allow*[puppetreports]allow*[resource]allow*


[root@web01puppet-2.7.21]#/etc/init.d/puppetstartStartingpuppet:[OK]

[root@web01puppet-2.7.21]#netstat-tulnpActiveInternetconnections(onlyservers)ProtoRecv-QSend-QLocalAddressForeignAddressStatePID/Programnametcp000.0.0.0:81400.0.0.0:*LISTEN6491/rubytcp000.0.0.0:22220.0.0.0:*LISTEN3095/sshd