Setting up connection between client and puppet master

I have just started playing around puppet and this post I am going to walk you through the process of connecting puppet master to client.

Here we will assume we already have a working setup of puppet client and master.

Configuration to connect Client to master

This setup is done in an environment where a existing DHCP server is available. If you don't have DHCP in your environment make sure that both puppet and master can ping each other. If it's not working specify proper entries in /etc/hosts file.

Try to connect from client to server

puppet agent --server puppetmaster --test

Here it will display output like:

Info: Creating a new SSL certificate request for puppetclient

Now for establishing connetcivity between client and server , you need to sign client certificate on puppet master.

To list pending request on puppet master

puppet cert list

To sign cert on master server

puppet cert sign puppetclient

If you would like to sign all pending requests

puppet cert sign --all

Now verify connectivity on puppet master

puppet agent --server puppetmaster --test

It will provide output like

Notice: Finished catalog run in 0.03 seconds


If puppet master is not running or firewall is not configured properly, puppet agent run will fail with error like below

Error: Could not request certificate: No route to host - connect(2)