Puppet Server

From Tomp Online Wiki

Jump to: navigation, search

Introduction

This article documents the setup of a Puppet server.

The Puppet RPMs in this tutorial are built from the spec file provided in the official puppet tarball source code.

I also used the ruby-shadow and ruby-augeas packages from EPEL.

Installation

rpm -ivh ruby-shadow-1.4.1-7.el5.i386.rpm ruby-augeas-0.3.0-1.el5.i386.rpm
rpm -ivh facter-1.5.8-1.noarch.rpm puppet-2.6.1-1.noarch.rpm puppet-server-2.6.1-1.noarch.rpm

Puppet Master

The puppet master server is where the configuration for all nodes controlled by puppet are stored.

Configure the file server, modify /etc/puppet/fileserver.conf

[files]
path /etc/puppet/files
allow 192.168.1.0/24

Now create files directory

mkdir /etc/puppet/files

Create the initial config files and directories:

cd /etc/puppet/manifests
mkdir classes nodes

Create /etc/puppet/manifests/site.pp

import "classes/*"
import "nodes/*"

Make sure all files placed in these directories have a .pp extension

Start the service as follows:

service puppetmaster start
chkconfig puppetmaster on
Personal tools