How do I install puppet on Ubuntu?

0 votes
How do I install puppet on Ubuntu? A little help would be useful. Thank you
Feb 21 in Puppet by Alia
123 views

1 answer to this question.

0 votes

Hey @Alia, follow these steps to install Puppet on Ubuntu.

I'm assuming that you're aware of all the pre-requisites.

In this case, there is one Puppet master and one Puppet agent. 

Check for available timezones

timedatectl list-timezones 

Look for the timezone that suits your server and set it, something like this:

sudo timedatectl set-timezone Asia/Kolkata

Install NTP

sudo apt-get update
sudo apt-get -y install ntp

Enable the official Puppet Labs collection repository with these commands:

cd ~ && wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
sudo dpkg -i puppetlabs-release-pc1-trusty.deb
sudo apt-get update

Install the puppetserver package:

sudo apt-get -y install puppetserver

Configure memory allocation according to the requirement and availability

sudo vi /etc/default/puppetserver

Finally, start the puppet server and then check for the status

sudo service puppetserver restart

Enable the official Puppet Labs collection repository with these commands and then finally install puppet agent on all the agent nodes

cd ~ && wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
sudo dpkg -i puppetlabs-release-pc1-trusty.deb
sudo apt-get update
sudo apt-get install puppet-agent

Once installed, start it with the following command:

sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true

Sign Certificates

On your puppet master execute this command which lists down all the certificates

sudo /opt/puppetlabs/bin/puppet cert list

You'll see one certificate from your agent node, execute this to sign it

sudo /opt/puppetlabs/bin/puppet cert sign certi-name

You can view all the signed certificated using this command:

sudo /opt/puppetlabs/bin/puppet cert list --all

And you're good to go :)

answered Feb 21 by Priya

edited Feb 21
Don't we also have to sign some certificates?
Hey @Priya, yes I'm sorry, I forgot to include that in the answer.

Have a look at this thread to know how to sign the certificates:

https://www.edureka.co/community/38912/sign-certificates-while-setting-up-puppet-on-ubuntu
Update your answer for better understanding and readability. Thank you
Hey @Kalgi, I've updated my answer.
Puppet: How do i install PuppetDB?

Related Questions In Puppet

0 votes
1 answer

How do I sign all the certificates together - Puppet on Ubuntu

Hey @Aryaa, use the following command to ...READ MORE

answered Feb 21 in Puppet by Adi
59 views
0 votes
1 answer

How do I Install puppet agent on linux?

Install the puppet-agent package on your Puppet agent nodes ...READ MORE

answered Mar 12 in Puppet by Yesha
90 views
0 votes
1 answer

Docker with Puppet: How do I install Docker EE on a Debian System?

Docker provides a enterprise addition of the ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 39,540 points
36 views
0 votes
1 answer

How do I install rpm package on a single Linux machine?

Install the package called pacman using this command: puppet ...READ MORE

answered Feb 25 in Puppet by Nandita
26 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How do I install factor and puppet using Ruby Gem?

Hey @Kiara, execute these commands to install ...READ MORE

answered Mar 8 in Puppet by Yogesh
60 views
0 votes
1 answer

How do I start a puppet server?

Hey if you're using Ubuntu, you can ...READ MORE

answered Feb 21 in Puppet by Kavyashri
38 views