System Environment: centos6.3
puppet:puppet-2.7.13
facter:facter-1.6.5
Ruby:yum Source
Note:
Facter used to obtain client system information (such as HOSTNAME,IP,OS-VERSION,FQDN, etc.)
Ruby is the puppet development environment
Puppet server:192.168.7.196
Puppet client:192.168.7.197
(server) configuration only for servers
(client) configured for client-only end
(server,client) for server-side and client configuration
I. Configuration Environment (server,client):
1. Closure of Iptables and SELinux (server,client)
# Service Iptables Stop
# Setenforce 0
# Vi/etc/sysconfig/selinux
---------------
Selinux=disabled
---------------
2. Install the Ruby development environment (centos6.3 Default update source) (Server,client)
# yum-y Install ruby*
3. Schedule Synchronization Time: (Server,client)
Sync time every 5 minutes
# CRONTAB-E
-------------
*/5 * * * */usr/sbin/ntpdate-u asia.pool.ntp.org
-------------
# Service Crond Restart
# Chkconfig Crond on
4. Modify server and client host and hostname:
(server,client)
# vi/etc/hosts
-------------------
192.168.7.196 server.example.com Server
192.168.7.197 client.example.com Client
-------------------
(server)
# vi/etc/sysconfig/network
----------------
Hostname=server.example.com
----------------
(client)
# vi/etc/sysconfig/network
----------------
Hostname=client.example.com
----------------