Puppet Master and Agent in RHEL and Centos 7/6/5

How Install Puppet on RHEL/Centos Linux 

 

Image result for puppet logo

This article covers only Monolithic  installation of the Enterprise version of  Pupper Server and Puppet Agent on RHEL/CentOS 7/6/5.

Systems Requirement 

Monolithic hardware requirements

In monolithic installations, hardware requirements differ depending on the number of nodes you’re managing.

 
Node volume Cores RAM /opt/ /var/ EC2
10 or fewer 2 6 GB 20 GB m3.large instance
Up to 4,000 16 + 32 + GB 100 GB 10 GB c4.4xlarge

To take advantage of progressively larger hardware, you must configure your environment to use additional resources.

Prerequisites Requirements

Step 1: Enable Dependencies and Puppet Labs Repository On Master

1. The server acting as a puppet master should have its system time set accurately. To set, accurate system time you should probably use NTP service. For more instructions on how to set correct system time with NTP, follow the below article.

  1. Set System Time with “NTP (Network Time Protocol)” in RHEL/CentOS

2. Once system time is set correctly, you should enable “optional” channel on RHEL distributions only, to install Puppet. For more instructions on how to enable “optional” channel on RHEL systems can be found Here.

3. Once channel is enabled, you can install latest versions of Puppet using Puppet Labs package repository on your correspondent RHEL/CentOS versions.

RHEL/CentOS 7
# rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
RHEL/CentOS 6
# rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
RHEL/CentOS 5
# rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm

Installation Steps

Step 1 Installing and Upgrading Puppet on the Master Server

4. On your master server, run the following command to install Pupper Server, it will install an init script (/etc/init.d/puppetmaster) for executing a test-quality puppet master server.

Do not start puppet master service now.

# yum install puppet-server

5. Next, run the following command to upgrade Puppet to most newest version.

# puppet resource package puppet-server ensure=latest

6. Once upgrade process completes, you will need to restart the puppet master web server to reflect new changes.

# /etc/init.d/puppetmaster restart

Step 3: Installing and Upgrading Puppet on Agent Node

7. Login to your agent node server and run the following command to install Puppet agent. Once you install Puppet agent, you may notice that an init script (/etc/init.d/puppet) has been generated for running the puppet agent daemon.

Do not start puppet agent service now.

# yum install puppet

8. Now upgrade the installed puppet agent to the most recent versions, with the help of following command.

# puppet resource package puppet ensure=latest

9. Once upgrade completes, you will need to restart the puppet service to take new changes.

# /etc/init.d/puppet restart

That’s it! at this moment, your Puppet server and Agent installed successfully, but it isn’t configured properly, to do so you need to follow the post-install and configuration tasks at.

 

Reference
Installing Puppet Master and Agent In RHEL -Centos-7
https://puppet.com/docs/pe/2018.1/pe_user_guide.html

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *