CentOS 5 Puppet Install

CentOS 6 Logo Puppet is a system for automating system administration tasks. Its automation saves you countless hours of frustration, monotony and reinventing the wheel. It lets you perform administrative task from a central systems to any number of systems running any variant of operating system.

For a more complete description visit Puppet Labs.

Installing the Puppet CentOS 5 packages

Install the Puppet Repository

# rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm

Install the Puppet Master packages

Install the Puppet Client packages

A Simple Manifest: Managing Ownership of a File

Step 1: Create a minimal manifest file called site.pp in /etc/puppet/manifests with the following content:

Step 2: Next create the sudo.pp class in /etc/puppet/manifests/classes/ with the following content:

This class which will ensure that the owner, group, and mode of the /etc/sudoers file will be set consistently across all systems that belong to that class.

Step 3: Start the Puppet Master service and enable startup on boot

Configuring Puppet

Configure the puppet client to connect to the server and enable logging. Edit the file /etc/sysconfig/puppet and uncomment the PUPPET_LOG and PUPPET_SERVER line specifying the servers address.

The client will automatically pull configuration from the server every 30 minutes, start it as a service and enable startup on boot

Sign the SSL key request from the Puppet Client

In order for the two systems to communicate securely we need to create signed SSL certificates. You should be logged into both the Puppet Master and Puppet machines for this next step.

  • Pingback: How to Install a Puppet Master and Client Server on Centos 5.2 | Adsense SEO()

  • Pingback: Creating A Local Yum Repository on CentOS 5.x | George Rushby dot com()

  • Pingback: Creating A Local Yum Repository on CentOS 5.x | George Rushby dot com()

  • Pingback: Creating a Local Fedora Yum Repository | George Rushby dot com()

  • http://www.riaannolan.com/ Riaan Nolan

    great How-to ! great Idea !

  • http://www.riaannolan.com/ Riaan Nolan

    great How-to ! great Idea !

  • Pingback: Creating a Local #Fedora 12 #Yum Repository | How 2 #CentOS()

  • Pingback: Installing #Puppet Dashboard on #CentOS 5.5 | How 2 #CentOS()

  • Pingback: Create #Fedora 13 local #Yum Repository | How 2 #CentOS()

  • Off_gl

    Finally this is simple but helpful … got my puppet master and client working .. Though as a suggestion you should add more stuff for configuration too .. 

  • Dhcolesj

    Will there be an updated HowTo for CentOS 6?  ’cause its saying it needs “ruby-augeas” now and will not install the server.

  • Dhcolesj

     Nevermind.  The HowTo exists already.  Why it wasn’t showing up on my searches for such a thing on Google I’ll never know.

  • Anthony Affee

    SSL part doesnt work for me. I cant get it to work on puppet 2.7. I can request cert from client to server but server puppet does not see it and thus cant reply with signed cert. Anything with IPTables or something I didnt do right? I am using Centos5.8

  • http://twitter.com/semigr Alexander S.

    “vi /etc/yum.repos.d/puppet.repo” was bad for me and I needed “service puppetmaster start” instead of “service puppet-server start”. Other things from this instruction worked OK.

  • http://twitter.com/semigr Alexander S.

    …And “chkconfig puppetmaster on” instead of “chkconfig puppet-server on”.

  • http://twitter.com/semigr Alexander S.

    Er… I understood that I had not succeeded in the following part:
    # puppetca –list
    # puppetca –sign server2.example.co.za
    Signed server2.example.co.za

    I had tried to do analogously too. Maybe this software is too complecated for me.

  • How2CentOS

    When you run #puppetca –list what is the output?

  • How2CentOS

    What was the output of # puppetca –list ??

  • Sumesh

    I use centos 5.4 to setup puppet. But got dependency issue during the installation of puppet master. But it sorted out after using below repo

    rpm -ivh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-1.noarch.rpm

  • How2CentOS

    Thanks for the update, I have amended the how2