:::: MENU ::::

CentOS 6 Puppet Install

In this tutorial we’ll be covering the very basics of installing and configuring Puppet. 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 6 packages

Install the Puppet Repository

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

Install the EPEL x86_64 YUM Repository

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.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.

+George Rushby


  • Beeloo

    can someone please show me how to install puppet-dashboard on centos 6.2 64 bits?

  • http://www.anacondawebhosting.com/ anacondaweb

    Excellent
    Very useful

  • http://twitter.com/zakainsworth Zak Ainsworth

    The service name is puppetmaster not puppet-server.

  • Jnanesh_msr2002us

    yes…you are right…thanks

  • Nirajkumarpandey

    Can you let me know the command to push the changes manually .

    Thanks

    ~Niraj

  • Arty Caiado

    run puppetd -t from the client end

  • Arty Caiado
  • Vance Layne

    Uhm…. I just tried doing a search for puppetmaster and it was no good on CentOS 6.3

    [root@localhost vance]# yum search puppetmaster

    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
    * base: centos.mirrors.atwab.net
    * epel: epel.mirror.constant.com
    * extras: centos.mirrors.atwab.net
    * rpmfusion-free-updates: mirror.us.leaseweb.net
    * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
    * updates: centos.mirrors.atwab.net
    Warning: No matches found for: puppetmaster
    No Matches found

    [root@localhost vance]#

    …. and then I tried George Rushby’s, suggestion and it was there…

    [root@localhost vance]# yum search puppet-server

    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
    * base: centos.mirrors.atwab.net
    * epel: epel.mirror.constant.com
    * extras: centos.mirrors.atwab.net
    * rpmfusion-free-updates: mirror.us.leaseweb.net
    * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
    * updates: centos.mirrors.atwab.net
    ================================================================ N/S Matched: puppet-server =================================================================
    puppet-server.noarch : Server for the puppet system management tool

    Name and summary matches only, use “search all” for everything.

    So maybe ‘puppetmaster’ is for debian…????
    I definetly know that ‘puppet-server’ is for CentOS.. 6.3 :)

  • Vance Layne

    On the last section:
    “Sign the SSL key request from the Puppet Client”
    ” puppetca –list” , did not work for me. I tried doing a search for puppetca in yum and still no cigar.

    Any thoughts???

  • How2CentOS

    try the following:
    [puppetmaster] # puppetca -l -a (this will list all the sign certs)
    [puppetclient] # puppetd –test –server puppetmaster -d (puppetmaster must be a fqdn)

  • DraneO

    Been following this thread. Nice blog but some of the stuff was short on meat, so to speak. I found another blog tech site that had some good centos 6 information for puppet installation and configuration. Have a look at http://seriousbirder.com/blogs/puppet-master-server-and-foreman-console-configuration-guide you might find something usefull.

    Cheers

  • DraneO

    sorry, meant to ask one more thing. You don’t mention what verion of gem and more specifically activerecord you are using. That apparently is important for Centos.

    Many thanks

  • nobody

    This is super out of date. Please read the docs on puppetlabs.com instead.