Thursday, February 20, 2020

puppet agent configuration

On agents:

Add hosts file entries of master if dns resolution is not setup:
echo 172.31.0.201 puppetmaster >> /etc/hosts

puppet agent on ubuntu:
wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
sudo dpkg -i puppetlabs-release-trusty.deb
sudo apt-get update
sudo apt-get install puppet

sudo nano /etc/puppet/puppet.conf
--
#add agent section at bottom.Create if not there.If there, add line entry at last.
[agent]
server = puppetmaster

sudo puppet agent --enable
sudo puppet agent --verbose --no-daemonize --onetime  -->if any errors, then should be done after certificate signing from master.

---
puppet agent on CentOS:
sudo yum install http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
sudo yum install puppet

other steps are same.

Certificate signing on Master:
-----
sudo puppet cert list
sudo puppet cert sign <slavenodename>





No comments:

Post a Comment