The Puppet Dashboard is a useful tool, that gives a birds-eye view of your systems configurations. You can see all errors being reported in a single place, as well as nodes that have stopped reporting. Here is how to set it up.
This picks up after the CentOS puppet install tutorial.
Install MySQL Server
The puppet dashboard stores data in a mysql database, so lets install it, start it and set a root mysql password. Here we’re using “motorrobot” for the password.
yum -y install mysql-server
/usr/bin/mysqladmin -uroot password 'motorrobot'
Create database for puppet dashboard
We’ll create a database called puppetdash and a user called puppdash with a password of motorrobot to connect to it.
echo "create database puppetdash;" | mysql -uroot -pmotorrobot
echo "grant all privileges on puppetdash.* to puppetdash@localhost identified by 'motorrobot';" | mysql -uroot -pmotorrobot
echo "flush privileges;" | mysql -uroot -pmotorrobot
rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-1.noarch.rpm
yum -y install puppet-dashboard
cp /usr/share/puppet-dashboard/config/settings.yml.example /usr/share/puppet-dashboard/config/settings.yml
nano -w /usr/share/puppet-dashboard/config/database.yml
Make the file look like this.
Then start the dashboard service, which by default runs on port 3000.
echo " report = true" >> /etc/puppet/puppet.conf
echo "" >> /etc/puppet/puppet.conf
echo "[master]" >> /etc/puppet/puppet.conf
echo " reports = store, http" >> /etc/puppet/puppet.conf
echo " reporturl = http://192.168.7.2:3000/reports/upload" >> /etc/puppet/puppet.conf
chown puppet-dashboard /usr/share/puppet-dashboard/log/
/sbin/chkconfig puppet-dashboard on
/sbin/chkconfig puppet-dashboard-workers on
/sbin/chkconfig mysqld on
If all went well you should see something like this.Comments)