Puppet and puppet dashboard installation on Ubuntu 12.04 LTS

Puppet and puppet dashboard installation on Ubuntu 12.04 LTS


1. Install prequistic
apt-get install mysql-server ruby

2. Download repo package
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
3. Install it
dpkg -i puppetlabs-release-precise.de

4. Install puppet master and dashboard
apt-get install puppetmaster puppet-dashboard

5. Login to mysql as root user

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


 CREATE DATABASE dashboard_development CHARACTER SET utf8;

 GRANT ALL PRIVILEGES ON dashboard_development.* TO 'dashboard'@'localhost';


6. Configure database puppet config:
/etc/puppet-dashboard.yml

to look something like this

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

development:
  database: dashboard_development
  username: dashboard
  password: andbigdata
  encoding: utf8
  adapter: mysql

test:
  database: dashboard_test
  username: dashboard
  password: andbigdata
  encoding: utf8
  adapter: mysql

7. Configure puppet-dashboard deafault configration
/etc/deafult/pappet-dashboard

e.g. change environment to to development

8. import database schemas:
cd /usr/share/puppet-dashboard/db/

rake db:migrate

9. Go to PUPPET_IP_ADDRESS:3000


Learn More :