Before installing and configuring puppet server (puppetmaster), ensure that your network is properly setup. Configure Puppet Server on Ubuntu 10.10 is easy and straight forward. It’s those subleties about the network configuration and necessary puppet recipes and files that can make our lives miserable.
To install Puppet, choose one of the following methods (we will use the Ubuntu Package)
Using package manager of your distro
- RPM (Fedora) for Red Hat, Fedora (puppet-server for server, puppet for client)
- DEB (Debian) for Ubuntu, Debian (puppetmaster for server, puppet for client)
Installing from source: (note: you will need to have Ruby installed on your system prior to installing Puppet)
- download the latest version from puppetlabs
- # tar -zxf puppet-0.xx.x.tgz
- # cd puppet-0.xx.x
- # ruby install.rb
- # puppet –version (to verify installation)
Using Ruby Gem: (note: you will need to have Ruby and Ruby Gem installed on your system prior to installing Puppet)
# gem install –remote –source http://reductivelabs.com/downloads puppet
Create a puppet user and group, in case your intallation method did not automatically create them for you:
- # groupadd puppet
- # useradd –M –g puppet puppet
Create a manifest. Without manifest (a text document that defines a particular configuration), puppetmaster will trow an error:
- # mkdir –p /etc/puppet/manifests
- # mkdir –p /etc/puppet/files
- # vi /etc/puppet/manifests/site.pp (and add the following puppet class)
package {
‘htop’ :
ensure => installed
}
Start the server (we start it manually to ensure it works without errors, later we will start it as a daemon)
# puppetmasterd –verbose –no-daemonize
We should get confirmation that the server has started and displays the current version. Any error messages should get resolved at this point before moving on to Install and configure puppet client on Ubuntu 10.10.