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
1 |
apt-get update && apt-get upgrade |
Reboot if necessary
Change your server’s hostname to something that makes sense
1 2 |
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
1 |
echo "x.x.x.x puppet" >> /etc/hosts |
Install Puppet
1 |
apt-get install puppet |
Run puppet for the 1st time to test it
1 |
puppet agent -t |
You might still need to sign your newly created certificate on your Puppet Server
When completed, start the puppet agent
1 |
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
1 |
wget https://launchpad.net/puppet/trunk/0.24.9/+download/puppet-0.24.9.tgz --no-check-certificate |
Unpack and install
1 2 3 |
tar -xvf puppet_2.6.1.orig.tar.gz cd puppet-2.6.1 ./install.rb |
Test your installation:
1 |
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)
1 2 3 4 |
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:
1 |
rpm -ivh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-6.noarch.rpm |
Install puppet
1 |
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:
1 |
rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm |
Install puppet intself
1 |
yum install puppet |
Then we add the puppet server to the /etc/hosts files
1 |
echo "87.238.161.69 puppet" >> /etc/hosts |
Run puppet for the 1st time
1 |
puppet agent -t |
When completed, start the puppet agent
1 |
service puppet start |