ReleaseEngineering:Puppet:Dashboard: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:


== Installation  ==
== Installation  ==
'''On the puppetmaster:'''


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 has just recently setup a yum repo with custom RPMs of puppet-dashboard. Add this to a repo file in /etc/yum.repos.d/  
Line 13: Line 15:
enabled=1  
enabled=1  
gpgcheck=1  
gpgcheck=1  
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-reductive</pre>
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-reductive</pre>  
Install with yum install puppet-dashboard  
Install with  
 
<pre>yum install puppet-dashboard
<br>  
</pre>
 
Add a mysql database, then configure the database accordingly in /usr/share/puppet-dashboard/config/database.yml&nbsp; (the production database is key here, don't configure all 3 to use the same database!)
== Configuration  ==
 
'''On the puppetmaster:'''


Edit /etc/sysconfig/puppetmaster, and set the following:  
Edit /etc/sysconfig/puppetmaster, and set the following:  
<pre>PUPPETMASTER_EXTRA_OPTS="--reports puppet_dashboard"
<pre>PUPPETMASTER_EXTRA_OPTS="--reports puppet_dashboard"
</pre>
</pre>  
(if there are any current reports configured, add puppet_dashboard with a comma)  
(if there are any current reports configured, add puppet_dashboard with a comma)  


Line 32: Line 31:
chkconfig puppet-dashboard on
chkconfig puppet-dashboard on
/etc/init.d/puppet-dashboard start
/etc/init.d/puppet-dashboard start
</pre>
</pre>  
'''On the clients:'''  
'''On the clients:'''  


Add the following to [puppetd] in /etc/puppet/puppet.conf:  
Add the following to [puppetd] in /etc/puppet/puppet.conf:  
<pre>report = true </pre>
<pre>report = true </pre>  
 
== Problems  ==
== Problems  ==



Revision as of 01:23, 3 August 2010

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

On the puppetmaster:

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

Add a mysql database, then configure the database accordingly in /usr/share/puppet-dashboard/config/database.yml  (the production database is key here, don't configure all 3 to use the same database!)

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