puppet/install.sh
#CentOS 6.4

# װruby,puppetʹrubyд
yum install ruby ruby-libs ruby-rdoc

# ޸puppetҪÿ̨FQDNûDNSֻͨ޸hosts֤hostnameĽhostsļһµ

# /etc/hosts
192.168.119.129 master.puppet.cn
192.168.119.128 client.puppet.cn

#/etc/sysconfig/network

HOSTNAME=master.puppet.cn


# ͬʱ
ntpdate tick.ucla.edu tock.gpsclock.com

#puppetٷԴ

rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-1.noarch.rpm

yum update


#
yum install puppet-server

service puppet start  # ԼҲΪһͻ˹
service puppetmaster start

#ͻ
yum install puppet

service puppet start

#޸/etc/puppet/puppet.conf

server = master.puppet.cn  #趨˵ĵַ


#֤鲢͸ǩ
puppet agent  --no-daemonize --verbose


#˲

puppet cert --sign node08.chenshake.com  #ǩ֤

puppet cert list --all #鿴֤飬֤ǰ+ŵѾͨǩ֤

puppet cert revoke node08.chenshake.com # ע֤

puppet cert --clean node08.chenshake.com # ֤飬עҪpuppetmaster

# ͻ֤飬
rm -f /var/lib/puppet/ssl/certs/node08.chenshake.com.pem

rm -rf /var/lib/puppet/ssl