Setting Up Puppet Enterprise in Ubuntu running on AWS
Puppet Enterprise is an old yet powerful Configuration management tool that allows working on various platforms like Unix, Linux and Windows. The main advantage of puppet is it works on a pull-based mechanism and needs an agent to communicate unlike Ansible which is push-based and work on SSH which is a major drawback in terms of security.
In this article, we’re going to demonstrate how to set up a puppet enterprise on Ubuntu OS hosted on AWS.
launch an Ubuntu 18.04 LTS(HVM) instance of a type t2.medium
with 40 GB SSD root
volume in the Public network.
Goto Elastic IPs
and create a new Elastic IP
one by clicking on Allocate Elastic IP address
. Leave every as it is and click on Allocate
.
Select the EIP
newly created and go to Actions
. Click on Associate Elastic IP address
. Select the running puppet master instance and click on the Associate
.
The reason to create and associate an Elastic IP is to provide a static DNS even if the instance rebooted.
Now SSH into the instance and update all the packages by running sudo apt-get update
.
Open the /etc/hosts
file and add the public DNS of the instance which is found in the EC2 console under theNetworking
tab. Save and exit. Also in the terminal run $ sudo hostname <Public DNS>
.
Download the latest puppet enterprise setup file.
$ wget --content-disposition 'https://pm.puppetlabs.com/puppet-agent/2021.1.0/7.6.1/repos/deb/bionic/puppet7/puppet-agent_7.6.1-1bionic_amd64.deb'
Expand the file.
$ tar -xf puppet-enterprise-2021.1.0-ubuntu-18.04-amd64.tar.gz
Go to the extracted directory.
$ cd puppet-enterprise-2021.1.0-ubuntu-18.04-amd64
Open the pe.conf
file located inside the conf.d
folder. Update the console admin password.
Update the DNS name entry and add the master
entry.
Run the puppet enterprise installer.
$ sudo ./puppet-enterprise-installer
Press Y
to proceed with the installation.
After the installation complete run the puppet agent -t
command two times.
$ sudo puppet agent -t
$ sudo puppet agent -t
To view the Puppet Enterprise
dashboard copy the Public IPv4 DNS
from AWS Console and paste it into the browser. Accept the Warning.
Put the User Name
and Password
hit Sign in
.
If you see the above screen means you have successfully installed the Puppet enterprise.