Install and configure Puppet Client on Ubuntu
I hope you had fun installing the Puppet Master in our previous article. If you haven’t done that step, I highly recommend doing before attempting to install the client.
After we have configured our network and installed, configured and verified our Puppet Server (puppetmaster), it’s now time to install and configure puppet client, and set it up to receive a signed certificate and puppet recipes. Again, if you haven’t performed those prerequisite setups, please start with Setup Puppet to configure your servers.
Let’s first install puppet from the Ubuntu package:
# apt-get install puppet
Then we start our client
# puppetd --server puppet-server01.example.com --verbose --waitforcert 60
A peak at /var/log/syslog confirms our request for a certificate: Creating a new SSL certificate request for puppet-client01.example.com
And the same log on the server should contain: puppet-master: puppet-client01.example.com has a waiting certificate request
If this state on the server is confirmed, it’s time to sign the certificate on the server:
# puppetca --list (and again we should see the hostname of our client that has requested the cert) # puppetca --sign puppet-client01.example.com
We should get confirmation as such: notice: Signed certificate request for puppet-client01.example.com. Anything else or errors will likely point towards network and/or dns configuration issues.
If you have followed our tutorial on how to setup puppetmaster, you should now have htop installed on your client. Also check /var/log/syslog for additional info.
Finally we should enable puppet to start on reboot. We do this by editing /etc/default/puppet and set START=yes.