How to Install Puppet on CentOS

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

Related Questions In Puppet

0 votes
1 answer

Can i install puppet master and puppet agent on the same centos machine? How will that work?

Yes, It's now possible to install both ...READ MORE

answered Aug 6, 2019 in Puppet by Sirajul
• 59,230 points
933 views
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, 2019 in Puppet by Sirajul
• 59,230 points
473 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,063 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
999 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
960 views
0 votes
1 answer

How do I install puppet on Ubuntu?

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

answered Feb 21, 2019 in Puppet by Priya

edited Feb 21, 2019 2,105 views
0 votes
1 answer

Puppet: How can i check for syntax errors on my puppet code? Is there any tool to do this?

At the lowest level of checking, you ...READ MORE

answered Aug 7, 2019 in Puppet by Sirajul
• 59,230 points
7,820 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
476 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