How to install Puppet Enterprise Agent Ubuntu

(Last Updated On: September 22, 2018)

In my last post, we installed the Puppet Enterprise 2017.3 Server. In this post we will learn how to install puppet enterprise agent Ubuntu.

How Puppet Manages Installation for Agents

When we installed our Puppet Enterprise server, it also installed a package repository that allows agents to get the latest Puppet Enterprise Agent package directly from the Puppet Server. This makes installing our agents a snap.

Puppet Agent Installation

The first thing we need to do is update our OS.

# apt update && apt upgrade -y
# reboot

Use the curl command to run the installation script from our Puppet Server:

# curl -k https://<MASTER HOSTNAME>:8140/packages/current/install.bash | sudo bash

Once that completes, we need to go to the Puppet Console on the Master and sign the certificate request that was just submitted. Login to your Puppet console using the username ‘admin’ and the password you configured during installation.


Signing Certificates

After you login to the Puppet Console, you will notice that there is a ‘1’ next to Unsigned certs in the menu on the left

Click on Unsigned certs to view the unsigned certificates. You will see our newly installed agent listed.

Click on Accept. You will then see Accepted. Your new agent is now installed and ready to run puppet.

Running Puppet

SSH to your agent node and run puppet as root.

$ sudo su -
# /opt/puppetlabs/bin/puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for agent.admintome.local
Info: Applying configuration version '1514830704'
Notice: Applied catalog in 0.29 seconds

After you run puppet, you will be able to see the node in the Puppet Console under Nodes.

There you go, we now have our little Puppet Enterprise 2017.3 environment configured.

Click here for more great articles from AdminTome Blog.

Need Puppet Training?

Checkout these awesome Puppet Courses from Pluralsight.  Pluralsight has great video-based training at a great price.

Pluralsight Free Trial


I hope you have enjoyed this article, if so please leave a comment below.  For more articles, please signup for the AdminTome Blog below.  Also please feel free to share the article to your friends using the buttons to the left.  Thanks again for reading this post.


Leave a Comment

you're currently offline