- Download the Puppet Labs package
user puppet-agent:# cd ~; wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
- Install the Puppet Labs package
user puppet-agent:# sudo dpkg -i puppetlabs-release-trusty.deb
- Update apt’s available packages
user puppet-agent:# sudo apt-get update
- Install the Puppet Agent package
user puppet-agent:# sudo apt-get install puppet
- Modify puppet default file.
user puppet-agent:# sudo vi /etc/default/puppet
- Enable the Puppet Agent by changing START from “no” to “yes”
START=yes
- Modify puppet.conf
user puppet-agent:# sudo vi /etc/puppet/puppet.conf
- Delete the templatedir line and the [master] section from puppet.conf
sudo vi /etc/puppet/puppet.conf
- Tell your agent where it’s master is. This step is not required if your master is called puppet, but this will only happen wiht micro networks.
[agent]
server = puppet-master.my.lan
- Start the puppet agent
user puppet-agent:# sudo service puppet start
- Now goto your puppet master so you can accept the cert of the new client.
root puppet-master:# puppet cert list
"puppet-agent" (SHA256) XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
root puppet-master:# puppet cert sign puppet-agent
Notice: Signed certificate request for puppet-agent
Notice: Removing file Puppet::SSL::CertificateRequest puppet-agent at '/var/lib/puppet/ssl/ca/requests/puppet-agent.pem'