Robert Harker Technical Wiki
Thoughts and Ideas About Large Sites

[ Prev ] [ Index ] [ Next ]


Puppet Dashboard

yum install puppet-dashboard
cd /usr/share/puppet-dashboard/config
add passwords to database.yml

# rebuild the ventdor/gems
rake gems:refresh_specs

# manually create the dashboard database
CREATE DATABASE dashboard_production CHARACTER SET utf8;
CREATE DATABASE dashboard_development CHARACTER SET utf8;
CREATE DATABASE dashboard_test CHARACTER SET utf8;
CREATE USER 'dashboard'@'localhost' IDENTIFIED BY 'girl';
GRANT ALL ON dashboard_production.* TO 'dashboard'@'localhost';
GRANT ALL ON dashboard_development.* TO 'dashboard'@'localhost';
GRANT ALL ON dashboard_test.* TO 'dashboard'@'localhost';
flush PRIVILEGES;

# this does not work
#rake RAILS_ENV=production db:create

rake db:migrate RAILS_ENV=production
rake db:migrate RAILS_ENV=development
rake db:migrate RAILS_ENV=test

# manually run the daemon, no -d flag
/usr/bin/ruby /usr/share/puppet-dashboard/script/server \

-e production -p 3000 -b 0.0.0.0

# open ports:
# 3000: production
# 3001: develolopment
# 3002: test
2601 service iptables save
2602 cd ../sysconfig/
2603 diff iptables iptables.save

2606 vi /etc/init.d/puppet-dashboard

enable reporting in puppet.conf
[agent]
# turn on reporting in the client
# report = true

[main]
reports = http://novamaster.cloud5.harker.com:3000/reports

2616 sudo rake RAILS_ENV=production reports:import


Backlinks: index Start
Created with Zim desktop wiki