- sudo rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm
- sudo yum install puppet-server
- Add following in /etc/puppet/puppet.conf [main]:
dns_alt_names = master.chff.dc - sudo puppet master --verbose --no-daemonize
- sudo rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm
- sudo yum install puppet
- Add following in /etc/puppet/puppet.conf [main]:
dns_alt_names = master.chff.dc
server=master.chff.dc - sudo service puppet start
- At master node, create following file:
[root@master ~]# cat /etc/puppet/manifests/site.pp
node default {
file {
"/tmp/test":
content=>"Hello FangFang \n",
mode => 0644;
}
} - At agent node:
puppet agent --test --ca_server=master.chff.dc - Verify at agent node:
[root@slave puppet]# cat /tmp/test
Hello FangFang
[root@slave puppet]# ll /tmp/test
-rw-r--r--. 1 root root 16 Jun 15 12:12 /tmp/test