Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Install Puppet Enterprise 2019 Agent on Ubuntu 18.04 Servers

In this post we will learn how to install the Puppet Enterprise 2019 Agent on Ubuntu 18.04 Server. This will allow Puppet to manage it’s configuration.

In a prior post (Install Puppet Enterprise 2019 on Ubuntu 18.04 Server) we installed a Puppet Enterprise server.

To be able to manage configuration of your servers you will need to install the Puppet Enterprise Agent on all the servers you want to be managed by Puppet.

Luckily, Puppet makes this easy for us by providing the packages for installation right on a share on the Puppet Enterprise Server!

Getting Started

We don’t need to start with a fresh installation for this tutorial.

You will need to make sure that your server that you are installing the Puppet Agent on can reach the Puppet Server by the hostname puppet.

If you configured local DNS and named the puppet server with a hostname of puppet then you are all set.

If you don’t have local DNS then you will need to add a line in your /etc/hosts file to point the hostname of puppet to the IP address of your Puppet Server.

To make sure that everything is good try a ping command:

ping puppet

You should get a response back.  Here is a response from the server I am installing the Puppet Agent on:

Now we can continue getting ready to install.

You can start on an existing server, just make sure that it is fully updated.

apt update && apt upgrade -y

We are now read to begin the Puppet Agent installation.

Install Puppet Enterprise Agent on Ubuntu 18.04

As I mentioned before, Puppet made things easy for us by including the Puppet Agent installation scripts on a share on the Puppet Server.

This is true as long as you are installing the Puppet Agent on the same OS and Version as the Puppet Server.

To start installing the agent run the following command with root privileges.

curl -k https://:8140/packages/current/install.bash | sudo bash

Be sure to substitute MASTER HOSTNAME with the FQDN of you Puppet Server.

The command will run a bash script that will install the Puppet Enterprise Agent for you.

During the installation it will generate a certificate and register with the Puppet Server.

Once it is complete we need to sign into the Puppet Server’s Web Console to accept the certificate.

Registering your Server

Browse to the following URL to open the Web Console.

https://

You will see the login screen.

Login with the admin username and password you setup already.

You will now see the dashboard.

On the left menu you will see an option for Unsigned Certs under Setup.

Select this option and you will be taken to the Unsigned Certs screen.

Here we can see our server listed.

Click on the Accept button to accept the certificate request.

It will say working for a few seconds and then say accepted when it is done.

We are now ready to run the Puppet Agent on our server.

Back on the server you installed Puppet Agent on we can run puppet with the following command:

puppet agent -t

You see puppet run.

You now have successfully installed Puppet Enterprise Agent on Ubuntu 18.04.

Conclusion

Now that you have a Puppet Enterprise Server and Agent installed you still have more to do.

Puppet is not configured to manage any configuration of your servers at this point.

In the next post I will walk through deploying the Puppet NTP module to manage NTP configuration on our servers.

I hope you have enjoyed this post.

If you did then please share it and comment below.

Also be sure to sign up for the AdminTome Blog Newsletter for updates when I post new articles.

The post Install Puppet Enterprise 2019 Agent on Ubuntu 18.04 Servers appeared first on AdminTome Blog.



This post first appeared on AdminTome, please read the originial post: here

Share the post

Install Puppet Enterprise 2019 Agent on Ubuntu 18.04 Servers

×

Subscribe to Admintome

Get updates delivered right to your inbox!

Thank you for your subscription

×