Puppet Installation

In my lab I have set up the CentOS 6.3 as the Puppet Master server, and Ubunt 12.10 as the Puppet agent.

Install Puppet-Server on CentOS (Master)

sudo rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm
sudo yum install puppet-server

Install Puppet on Ubuntu (Agent)

wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
sudo dpkg -i puppetlabs-release-precise.deb
sudo apt-get update
sudo apt-get install puppet 

Specify the Puppet Master server name in /etc/puppet/puppet.conf in Agent


Enable the service

In Agent: sudo puppet resource service puppet ensure=running enable=true
In Master: sudo puppet resource service puppetmaster ensure=running enable=true

Request (Agent) and Sign Certificate (Master)

In Agent: sudo puppet agent –test (or sudo puppet agent, when with ‘–test’ it only runs once)
In Master: sudo puppet cert sign –all

Test – Create a file in the Agent

In Master: 

vi /etc/puppet/manifests/site.pp

node default{
file {“/tmp/puppet_test_file”:
content => “this is a puppet test file”}

In Agent: sudo puppet agent –test

Reference: http://docs.puppetlabs.com/guides/installation.html


One thought on “Puppet Installation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s