ReleaseEngineering:Puppet:Dashboard

From MozillaWiki
Jump to navigation Jump to search

Assumptions

It is assumed that the EPEL repository is setup and that the puppet (and puppet-master) packages were installed from there.

Puppet-master and the dependencies should be at their latest versions

Installation

Puppetlabs has just recently setup a yum repo with custom RPMs of puppet-dashboard. Add this to a repo file in /etc/yum.repos.d/

[puppetlabs] 
name=Puppet Labs Packages 
baseurl=http://yum.puppetlabs.com/base/ 
enabled=1 
gpgcheck=1 
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-reductive

Install with yum install puppet-dashboard


Configuration

On the puppetmaster:

Edit /etc/sysconfig/puppetmaster, and set the following:

PUPPETMASTER_EXTRA_OPTS="--reports puppet_dashboard"

(if there are any current reports configured, add puppet_dashboard with a comma)

Then

cp /usr/share/puppet-dashboard/lib/puppet/puppet_dashboard.rb /usr/lib/ruby/site_ruby/1.8/puppet/reports/ 
/etc/init.d/puppetmaster restart
chkconfig puppet-dashboard on
/etc/init.d/puppet-dashboard start

On the clients:

Add the following to [puppetd] in /etc/puppet/puppet.conf:

report = true 

Problems

If you run into the following, you need to upgrade ruby, ruby-libs, etc. first:

Transaction Check Error:

 file /usr/lib/ruby/1.8/net/pop.rb from install of ruby-libs-1.8.5-5.el5_4.8 conflicts with file from package ruby-libs-1.8.5-5.el5_2.6