Puppet is a configuration management tool. It is open source and I am a big fan of this tool to configure all my servers. I will show you the really quick and easy way to get your puppet server setup. First of all you need a basic install of a Debian Wheezy 7.0 server, once it is setup you can start.
1. Enable puppet repository to get latest Puppet packages
wget http://apt.puppetlabs.com/puppetlabs-release-wheezy.deb dpkg -i puppetlabs-release-wheezy.deb |
2. Update the packages list
apt-get update |
3. Install puppetmaster packages
apt-get install -y puppet puppet-common puppet-el puppet-testsuite \ puppetmaster puppetmaster-common vim-puppet |
4. Stop puppetmaster daemon and disable it on startup
kill -9 $(ps aux | grep puppet | grep -v grep | awk '{print $2}') sed -i "s/START=yes/START=no/g" /etc/default/puppetmaster |
5. Install passenger dependency to hook puppetmaster with apache web server
apt-get install -y puppetmaster-passenger |
6. Check puppet version
puppet --version |
7. Ensure puppetmaster is running
netstat -a | grep 8140 # You should see the line like: # tcp 0 0 *:8140 *:* LISTEN |
You can also go at the address https://your_server_ipaddress:8140/
You will see the message: The environment must be purely alphanumeric, not ” that confirms that your puppetmaster server is running.
It’s done, you are now running your own Puppetmaster server. All the configuration files and your node definition need to be done into the /etc/puppet/ folder. There is also the folder /var/lib/puppet/ that can contain some information like your SSL certificates.
Have fun!
References:
Install puppet client and connect to your puppet master
http://puppetlabs.com/
http://www.debian.org/