Part 3: Installing puppet-dashboard on CentOS / Puppet 2.6.1
Puppet dashboard is a fairly new app with loads of future potential and is great for monitoring your puppet estate. This is a quick guide to getting it running on puppet 2.6.1. Be sure you have the correct yum repos and ruby versions installed, see Part 1 and Part 2 for more details.
Install the puppet-dashboard package.
punch# yum –enablerepo=puppetlabs,ruby,epel install puppet-dashboard […] Installing for dependencies: mysql i386 5.0.77-4.el5_5.3 ruby-irb i686 18.104.22.168-1 ruby-mysql i686 2.7.4-1 ruby-rdoc i686 22.214.171.124-1 rubygem-rake noarch 0.8.7-2.el5 rubygems noarch 1.3.1-1.el5 Install 7 Package(s) Upgrade 0 Package(s) Total download size: 11 M Is this ok [y/N]: y […]
Create a MySQL database for puppet-dashboard
Create a database for puppet-dashboard to use and set up a user with all privileges to use it. This can be done on a seperate host.
mysql> CREATE DATABASE puppetdash; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON puppetdash.* TO puppet@’%’ IDENTIFIED BY ‘punchandjudy’; Query OK, 0 rows affected (0.00 sec)
cd /usr/share/puppet-dashboard vi config/database.yaml
Add your database parameters to the development section, note that host: can be ommitted if you are using local sockets to connect to MySQL.
I hate doing this but puppetmasterd explicitly looks for reports in puppet/reports and so far I haven’t found a clean workaround to tell it to look in /usr/share/puppet-dashboard for it. If anyone knows of a way, please email me.