CentOS installation Puppet Environment Introduction: centos6.4x64 with CentOS-6.4-x86_64-minimal.iso minimal installation puppet version 3.6.2, ruby1.8.7, facter1.7.1 Puppet requires that all machines have a complete domain name (FQDN), if no DNS server provides a domain name, you can set the host name on the two machines (note that you need to set the host name before installing Puppet, because the host name is written into the certificate during Puppet installation, and this certificate is required for communication between the client and the server ): # vi/etc/hosts 192.168.xx.xx (Server ip) master (host name) host domain name 192.168.xx.xx (client ip) client (client name) client Domain Name
Puppet requires that the clock on all machines be synchronized, so you need to install and enable the ntp service (if you use a CentOS-6.2-x86_64-minimal.iso to minimize installation, you need to install this package extra ). # Yum install ntp
# Chkconfig ntpd on
# Ntpdate pool.ntp.org
# Service ntpd start
Ruby dependency package needs to be installed # yum install ruby-lib ruby-rdoc
Installation Process: 1, disable selinux 2, add puppet installation source rpm-ivh http://yum.puppetlabs.com/el/6.4/products/x86_64/puppetlabs-release-6-10.noarch.rpm 3. install yum-y install ruby-libs ruby-shadow puppet-server facter on the server. install yum-y install ruby-libs ruby-shadow puppet facter on the client