Puppet-dashboard Installation


Continue with my previous Puppet Installation, here is how I installed the puppet dashboard which offers a web UI.

Install puppet-dashboard

sudo yum install puppet-dashboard

Config /usr/share/puppet-dashboard/config/database.yml

production:
database: dashboard_production
username: dashboard
password: puppet
encoding: utf8
adapter: mysql

Create MySQL database for puppet-dashboard

CREATE DATABASE dashboard_production CHARACTER SET utf8;
CREATE USER ‘dashboard’@’localhost’ IDENTIFIED BY ‘puppet’;
GRANT ALL PRIVILEGES ON dashboard_production.* TO ‘dashboard’@’localhost’;

Prepare Schema

cd /usr/share/puppet-dashboard/
rake RAILS_ENV=production db:migrate

Start puppet-dashboard

sudo -u puppet-dashboard /usr/share/puppet-dashboard/script/server -e production &

Configure  puppet master server

#/etc/puppet/puppet.conf (puppet master)

[master]
node_terminus = exec
external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000 /usr/share/puppet-dashboard/bin/external_node

Restart puppet master server

/etc/init.d/puppetmaster restart

Start delayed job workers

sudo -u puppet-dashboard env RAILS_ENV=production /usr/share/puppet-dashboard/script/delayed_job -p dashboard -n 2 -m start &

Test

In Agent: sudo puppet agent

Go to the http://Master_Server_IP:3000

Reference: http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s