How to Install Puppet on CentOS?

0 votes
How to Install Puppet on CentOS?
Feb 27 in Puppet by Jeena
29 views

1 answer to this question.

0 votes

You need two nodes for Puppet to work, one Puppet master and one is Puppet agent. IIn this case there will be one puppet master and one puppet agent.

Create a CentOS node which will act as the master

Look at available timezones

timedatectl list-timezones

Select the one that suits you

sudo timedatectl set-timezone America/New_York

Install NTP

sudo yum -y install ntp
sudo ntpdate pool.ntp.org

Start NTP

sudo systemctl restart ntpd
sudo systemctl enable ntpd

Install Puppet Server

sudo rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
sudo yum -y install puppetserver 

Configure memory allocations. Go to this file and chnage the JAVA_ARGS

sudo vi /etc/sysconfig/puppetserver
JAVA_ARGS="-Xms3g -Xmx3g"

Start Puppet Server

sudo systemctl start puppetserver
sudo systemctl enable puppetserver

Install Puppet Agent

sudo systemctl enable puppetserver
sudo yum -y install puppet-agent
sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true

Sign Certificate

List all the certificates

sudo /opt/puppetlabs/bin/puppet cert list

Sign them

sudo /opt/puppetlabs/bin/puppet cert sign certificate_name

or sign all of them

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

And you're done:)

answered Feb 27 by Avinash

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

Puppet in Docker : How to mount Puppet on a CentOS container?

Run the following command: docker run --volumes-from=puppet-agent centos ...READ MORE

answered Aug 19 in Puppet by Sirajul
• 25,420 points
9 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
61 views
0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12 in Puppet by Jason
107 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
80 views
0 votes
1 answer

How do I install puppet on Ubuntu?

Hey @Alia, follow these steps to install ...READ MORE

answered Feb 21 in Puppet by Priya

edited Feb 21 98 views
0 votes
1 answer
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
• 25,420 points
19 views