How to Install Puppet on CentOS?

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

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

Start NTP

sudo systemctl restart ntpd
sudo systemctl enable ntpd

Install Puppet Server

sudo rpm -ivh
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

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
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
+5 votes
2 answers

How To Deploy Windows Server Using Puppet?

Deploying windows server through Puppet is similar ...READ MORE

answered Mar 26, 2018 in Puppet by shubham
• 6,830 points
0 votes
1 answer
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
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 74 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
0 votes
1 answer

What is the use of etckeeper-commit-post and etckeeper-commit-pre on Puppet Agent?

Hey @Pallavi,  etckeeper-commit-post: In this configuration file you can ...READ MORE

answered Feb 15 in Puppet by Simran