Install Puppet on Ubuntu 20.04 LTS - A step by step guide ?

Puppet is an open-source configuration management and server automation framework. It can perform administrative work across a wide array of systems that are primarily defined by a "manifest" file, for the group or type of server(s) being controlled.

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers in performing related Open-source Software Installation queries.

In this context, we shall look into how to install Puppet on Ubuntu 20.04 LTS.

Steps to Install Puppet on Ubuntu 20.04 LTS Focal Fossa

1. Perform System Update

First, make sure that all your system packages are up-to-date by running these following apt commands in the terminal:

$ sudo apt update
$ sudo apt upgrade

2. Install Puppet on the system

i. Install Puppet Server

Now we download the latest version of Puppet with the following command:

$ wget
$ dpkg -i puppet6-release-focal.deb

Then, install the Puppet server using the following command:

$ sudo apt update
$ sudo apt install puppetserver

Start and enable the Puppet Server:

$ sudo systemctl start puppetserver
$ sudo systemctl enable puppetserver

ii. Install Puppet Agent

First, download and install the Puppet repository with the following command:

$ wget
$ dpkg -i puppet6-release-focal.deb

Next, run the following commands to install the Puppet agent:

$ sudo apt update
$ sudo apt install puppet-agent

Once has done, you will need to edit the Puppet configuration file and define the Puppet master:

$ nano /etc/puppetlabs/puppet/puppet.conf

Add the following lines:

certname = puppetclient
server = puppetmaster

Save and close, Then start the Puppet agent service and enable it to start at boot:

$ sudo systemctl start puppet
$ sudo systemctl enable puppet

3. Sign Agent Node Certificate on Master Server

First, on the Puppet master node, run the following command to list all certificate:

$ /opt/puppetlabs/bin/puppetserver ca list

Next, sign all the certificate with the following command:

$ /opt/puppetlabs/bin/puppetserver ca sign --all

Once the Puppet master is signed your client certificate, run the following command on the client machine to test it:

$ /opt/puppetlabs/bin/puppet agent --test

[Need help in installing any Software on your Linux system ? We can help you. ]

This article covers the process of installing the Puppet on 20.04 LTS Focal Fossa system. In fact, Puppet is a free and open-source automated administrative engine for Linux, Unix, and Windows operating systems. It is used for deploying, configuring, and managing servers and performs administrative tasks such as adding users, installing packages, and many more.

Furthermore, It helps system admins to free up time and mental space by automating tasks on thousands of physical and virtual machines. It uses a client-server model. Where Puppet master controls configuration information for Puppet agents while Puppet agents talk to and pull down configuration profiles from the Puppet master.

For additional help or useful information, we recommend you to check the official Puppet website.

Related Posts