How to Install Puppet on CentOS?

0 votes
How to Install Puppet on CentOS?
Feb 27 in Puppet by Jeena
18 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

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

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
39 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
44 views
+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,640 points
178 views
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,220 points
62 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 71 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
38 views
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
56 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.