Wednesday, 5 June 2013

Installing and Testing the Puppet Agent Software – Linux

In my previous article I showed you how to install the puppet master server and test to ensure it installed correctly.  In this article I’m going to show you how to install the puppet agent software on a linux box and test to ensure it’s successfully talking to the puppet master.  I’ll assume you’ve already downloaded the puppet installation files and copied up to your server.  Log onto your agent server, browse to the installation directory and run the following command:

./puppet-enterprise-installer

Select No when asked if you wish to install the puppet master components:

image

Select No when prompted if you want to install the cloud provisioner:

image

Select No when asked if you want to install the console:

image

Select Yes when prompted if you want to install the agent:

image

When prompted for the unique name for the agent just accept the default name which should be the hostname:

image

When prompted enter the puppet master hostname:

image

Select Yes to import the puppet labs GPG key:

image

Select Yes to install the packages automatically:

image

Select Yes to create the symbolic links to the puppet executables:

image

Finally select Yes to perform the installation:

image

The installations starts and hopefully completes within a few minutes:

image

The puppet agent software is now installed.  We now need to approve the request on the puppet master server.  SSH into the box and run the following command:

puppet cert list

We can see that we have a request from the puppet agent server:

image

To accept the request run:

puppet cert sign <hostname>


image

This request should also be removed if you run the cert list command again.  To test the agent can communicate with the master simply run:

puppet agent –test

image

You agent has successfully communicated with the puppet master.  If we now log into the master GUI you should see both the agent and the master:

image

In the next article I will show you how to install the puppet agent software on a windows box.

No comments:

Post a Comment