Installing Puppet agent on Ubuntu 12.04 (Precise)
To install puppet on a Cloudstar (Linux) Server, the following steps need to be performed:
We start with installing all available OS patches
apt-get update && apt-get upgrade
Reboot if necessary
Change your server’s hostname to something that makes sense
echo "webserver.com" > /etc/hostname hostname webserver.com
Make it easy on yourself and add the puppet server to your /etc/hosts files. Modify your puppet.conf via a module if you like
echo "x.x.x.x puppet" >> /etc/hosts
Install Puppet
apt-get install puppet
Run puppet for the 1st time to test it
puppet agent -t
You might still need to sign your newly created certificate on your Puppet Server
When completed, start the puppet agent
service puppet start
Installing Puppet agent on Ubuntu 10.04 (Lucid)
Ubuntu 10.04 has an old Puppet version in its package repo…. therefor, it’s better to download the latest version from Puppetlabs and install it that way.
You can use this on Precise too of course!
Execute the same stuff on your server as above, but don’t apt-get install puppet…
Instead: (underneath link was the latest stable version available at the time of writing this article
wget https://launchpad.net/puppet/trunk/0.24.9/+download/puppet-0.24.9.tgz --no-check-certificate
Unpack and install
tar -xvf puppet_2.6.1.orig.tar.gz cd puppet-2.6.1 ./install.rb
Test your installation:
puppet agent -t
You might encounter a message stating that you also need facter installed.
If you don’t have it, you can manually install Facter by: (you need facter v1.5 or above)
http://downloads.puppetlabs.com/facter/facter-1.6.16.tar.gz tar -xvf facter-1.6.16.tar.gz cd facter-1.6.16 ./install.rb
Installing Puppet agent on RHEL 5
Install the PuppetLabs Repository first:
rpm -ivh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-6.noarch.rpm
Install puppet
yum install puppet
Installing Puppet agent on RHEL 6
Add Optional (needed) Repo’s in your RHEL Subscription online
Select:
in the subscription management page.
Then install the PuppetLabs Repository:
rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm
Install puppet intself
yum install puppet
Then we add the puppet server to the /etc/hosts files
echo "87.238.161.69 puppet" >> /etc/hosts
Run puppet for the 1st time
puppet agent -t
When completed, start the puppet agent
service puppet start