Quick intro to Puppet

I’ve been using puppet for a while to automate several things within the Linux servers that I manage. It’s also one of those things that if I don’t use it in a while, I forget it. So, I’m going to do a quick run through of registering a puppet agent with a puppet master. I’ll also show some of the things that every Linux install gets pushed, aka the default settings.

Here is my default manifest that every system gets:

The first thing that I do is install puppet on the new agent (client) node.

Next, I’ll modify the /etc/hosts file and /etc/sysconfig/puppet file to specify my puppet master (puppet server).

After that, I need to generate a ssl cert from the puppet agent to the puppet master.

When the key has been generated, hop on the puppetmaster server and sign the key.

Now hop back onto the puppet agent and test the newly sign certificate. If all is good, it should push your default config to the server. For brevity, I’ll leave out the output of everything that it set up.

Finally, the last thing to do is start the puppet service, on the agent, and verify that its running.

Now you should have a fully functional puppet installation. Now you can create puppet manifests to automate your server(s) even more!

February 10, 2014

Posted In: Linux, Puppet