Setup puppet master/ agent - Steps on CentOS
*Puppet master will have auto sign policy, to enable that use following steps :-
cd /etc/puppet/
vi autosign.conf [Add content: *] - It will allow all nodes by default.
open up /etc/puppet/puppet.conf
vi /etc/puppet/puppet.conf
Add this section
[master]
autosign = true
*On Agent, to connect it with puppet master, edit /etc/puppet/puppet.conf
Add following line, under [main] section:-
server=puppetmaster.rbidev.ds
*Firewall should be disabled on both puppet amaster/ agent
SERVER
======
1 rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
2 yum install puppet-server
3 cat /etc/hosts
4 ping 192.168.33.11
5 vi /etc/hosts
6 ping puppetclient.rbidev.ds
7 vi /etc/hosts
8 ping puppetclient.rbidev.ds
9 cat /etc/puppet/puppet.conf
10 service puppet start
11 service puppetmaster start
12 puppet cert list
13 /etc/init.d/puppetmaster status
14 puppet cert list -a
15 history
AGENT
=====
1 rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
2 yum install puppet
3 cat /etc/hosts
4 vi /etc/hosts
5 cat /etc/hosts
6 ping puppetmaster.rbidev.ds
7 service puppet start
8 cat /etc/puppet/puppet.conf
9 puppet agent --test
10 ls /etc/puppet/
11 ls /etc/puppet/modules/
12 history
cd /etc/puppet/
vi autosign.conf [Add content: *] - It will allow all nodes by default.
open up /etc/puppet/puppet.conf
vi /etc/puppet/puppet.conf
Add this section
[master]
autosign = true
*On Agent, to connect it with puppet master, edit /etc/puppet/puppet.conf
Add following line, under [main] section:-
server=puppetmaster.rbidev.ds
*Firewall should be disabled on both puppet amaster/ agent
SERVER
======
1 rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
2 yum install puppet-server
3 cat /etc/hosts
4 ping 192.168.33.11
5 vi /etc/hosts
6 ping puppetclient.rbidev.ds
7 vi /etc/hosts
8 ping puppetclient.rbidev.ds
9 cat /etc/puppet/puppet.conf
10 service puppet start
11 service puppetmaster start
12 puppet cert list
13 /etc/init.d/puppetmaster status
14 puppet cert list -a
15 history
AGENT
=====
1 rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
2 yum install puppet
3 cat /etc/hosts
4 vi /etc/hosts
5 cat /etc/hosts
6 ping puppetmaster.rbidev.ds
7 service puppet start
8 cat /etc/puppet/puppet.conf
9 puppet agent --test
10 ls /etc/puppet/
11 ls /etc/puppet/modules/
12 history
Comments