How to Install and Configure Puppet on Ubuntu 22.04

Puppet is a freely available configuration management tool. It automates the deployment and management of software and system configurations. By defining desired states, Puppet ensures consistency, simplifies administration, and handles configuration changes.

In this guide, we will explain the procedure for installing and configuring Puppet on Ubuntu 22.04.

How to Install Puppet on Ubuntu 22.04?

In this section, we will discuss the method for installing Puppet on Ubuntu 22.04.

Step 1: Download Release Package

As the first step, open up the terminal, and execute the mentioned command for downloading the package:


Step 2: Install the Package

Next, run the mentioned command:

sudo dpkg -i puppet6-release-focal.deb

Step 3: Update the Package lists

Then, use the following command for updating the packages list:

sudo apt-get update

Step 4: Install Puppet Agent

You can install the Puppet agent by utilizing this command:

sudo apt-get install puppet-agent

How to Configure Puppet on Ubuntu 22.04?

This section will elaborate on the method of configuring the Puppet agent.

Step 1: Open and Modify the Host File

Now, open the host file using your preferred text editor. Here, we used “nano”:

sudo nano /etc/hosts

Write the following lines in the host file. Note that, these IP addresses will vary for your case: puppetmaster puppet puppetclient

Step 2: Open and Modify the Configuration File

Use the mentioned command for opening the configuration file:

sudo nano /etc/puppetlabs/puppet/puppet.conf

Then, write the mentioned lines:


certname = puppetclient

server = puppet

environment = production

runinterval = 1h

Press “CTRL+X” to exit, and “Y” to save changes.

Step 3: Start and Enable Puppet

Utilize the following commands for starting and enabling the Puppet agent:

sudo systemctl start puppet

sudo systemctl enable puppet

Step 4: Check Puppet Status

Check the Puppet agent status by using this command:

sudo systemctl status puppet

That was all about installing and configuring Puppet on Ubuntu 22.04.


To install Puppet on Ubuntu 22.04, first, launch the terminal. Then, write the “wget” command to download the package. After that, install the package using the “sudo dpkg -i puppet6-release-focal.deb” command, and update the package lists. Now, install Puppet agent “sudo apt-get install puppet-agent”. At last, configure it accordingly. That’s how you can install and configure Puppet on Ubuntu 22.04.


Print Friendly, PDF & Email