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
64 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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.

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
33 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
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
11 views
0 votes
1 answer

How do I install Puppet directly from the source?

Hey @Laksha,  First, install the Puppet tarball from ...READ MORE

answered Mar 8 in Puppet by Yesha
35 views
0 votes
1 answer
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
19 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
15 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.