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, 2019 in Puppet by Alia
2,471 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, 2019 by Priya

edited Feb 21, 2019
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, 2019 in Puppet by Adi
628 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, 2019 in Puppet by Yesha
1,196 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, 2019 in Puppet by Sirajul
• 59,230 points
613 views
+2 votes
1 answer

How do I trigger the puppet agent on slave to install docker using jenkins?

Hey @Mercy, you will have to write ...READ MORE

answered Aug 17, 2020 in Puppet by Karan
• 19,610 points
1,237 views
0 votes
2 answers
0 votes
1 answer

How to Install Puppet on CentOS?

You need two nodes for Puppet to ...READ MORE

answered Feb 27, 2019 in Puppet by Avinash
673 views
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, 2019 in Puppet by Yogesh
2,057 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, 2019 in Puppet by Kavyashri
633 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP