First, Server -End Installation
1 , installation puppet Yum Source
Yum - y install http://yum.puppetlabs.com/el/6/products/x86_64/ puppetlabs-release-6-7.noarch.rpm
sed-i-E "s/enabled=1/enabled=0/g"/etc/yum.repos.d/puppetlabs.repo
yum--enablerepo=puppetlabs-products,puppetlabs-deps-y Install puppet-server
2 , modify Configuration
vim /etc/sysconfig/puppetmaster
puppetmaster_manifest=/etc/puppet/manifests/site.pp # Open Comment
puppetmaster_log=syslog # logging
touch/etc/puppet/manifests/site.pp # Creating a file
3 , start service, boot up
/etc/rc.d/init.d/puppetmasterstart
Chkconfig puppetmaster on
Second, Client installation
1 , installation Pupp et yum Source
Yum - y install http://yum.puppetlabs.com/el/6/products/x86_64/ puppetlabs-release-6-7.noarch.rpm
sed-i-E "s/enabled=1/enabled=0/g"/etc/yum.repos.d/puppetlabs.repo
yum--enablerepo=puppetlabs-products,puppetlabs-deps-y install puppet
2 , modify Configuration
Vi/etc/sysconfig/puppet
puppet_server= server .puppet.com # specify server end
puppet_log=/var/log/puppet/puppet.log # logging
3 , start service, boot up
/etc/rc.d/init.d/puppetstart
chkconfig puppet on
Third, registration
Server End:
P uppet cert List # View registration Information
Puppet cert sign client1.puppet.com # Consent to registration
Iv. Testing
Server End:
vim/etc/puppet/manifests/site.pp # Edit the host configuration file
Group {' Testgroup ':
ensure=> present ,
gid = ,
}
Pupp et apply/etc/puppet/manifests/site.pp # To run the master configuration file
Client End:
/etc/init.d/puppetreload # Reload configuration file
grep Testgroup/etc/group # See if there are any Testgroup Group
This article is from the "It's a Long Way" blog, make sure to keep this source http://longgege.blog.51cto.com/6740519/1763494
1-puppet Installation