CentOS6 에 Puppet 설치
사전 작업
Puppet Master
- yum install puppet-server
- A Simple Manifest: Managing Ownership of a File
- vi /etc/puppet/manifests/site.pp
# /etc/puppet/manifests/site.pp import "classes/*" node default { include sudo }
- Next create the sudo.pp class in /etc/puppet/manifests/classes/
- mkdir /etc/puppet/manifests/classes ; vi /etc/puppet/manifests/classes/sudo.pp
# /etc/puppet/manifests/classes/sudo.pp class sudo { file { "/etc/sudoers": owner => "root", group => "root", mode => 440, } }
- service puppetmaster start
- chkconfig puppetmaster on
Puppet Client
- yum install puppet
- Configure the puppet client to connect to the server and enable logging. Edit the file /etc/sysconfig/puppet and uncomment the PUPPET_LOG and PUPPET_SERVER line specifying the servers address.
- vi /etc/sysconfig/puppet
- service puppet start
- chkconfig puppet on
참고
- http://docs.puppetlabs.com/guides/installation.html#enterprise-linux-and-derivatives
- http://www.how2centos.com/centos-6-puppet-install/ - 오래됨
- http://bitfieldconsulting.com/puppet-tutorial