Last Updated: February 25, 2016
·
884
· vidyasagar

Puppet Installation on Ubuntu 12.04LTS

Step by Step installation Procedure:

Step 1: Define your hostname
Modify /etc/hostname to have only your desired hostname. If this were to be a puppet master your file would look something like

puppet.domain.com

Also modify /etc/hosts by adding your static ip and hostname. Again if this were to be a puppet master then you should have something like

127.0.0.1 localhost puppet
10.0.0.1  puppet.domain.com puppet

Step 2: Set the right date in your server

sudo ntpdate pool.ntp.org

Note: make sure to add -B in case you don’t want to force the change immediately

Step 3: Add the PuppetLabs repository

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

Step 4: Install Puppet

sudo apt-get install puppet

At this point if everything worked well you should be able to check the puppet version by running

puppet help

Step 5: Install Puppet Master

sudo apt-get install puppetmaster