Premise: the aptitude-yinstallpuppetaugeas-toolsaptitude-yinstallpuppetmastersqlite3libsqlite3-rubylibactiverecord-rubygitrake has been installed puppetmaster side 1. install some software required for the dashboard apt-getinstall
Prerequisites:
Aptitude-y install puppet augeas-tools
Aptitude-y install puppetmaster sqlite3 libsqlite3-ruby libactiverecord-ruby git rake
You have installed puppetmaster.
1. install some software required by the dashboard
Apt-get install-y build-essential irb libmysql-ruby libmysqlclient-dev libopenssl-ruby libreadline-ruby mysql-server rake rdoc ri ruby-dev
2. Create a database
# Mysql-uroot-p
Mysql> create database dashboard;
Query OK, 1 row affected (0.00 sec)
Mysql> grant all on dashboard. * to dashboard @ localhost identified by 'topsecret ';
Query OK, 0 rows affected (0.01 sec)
Mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
3. Obtain the dashboard source code package
Http://puppetlabs.com/misc/download-options/ search dashboard on this site to get a tar package
My directory is in/root // puppet-dashboard-1.2.11
4. Modify the Database Configuration File Information
# Cd/root/puppet-dashboard-1.2.11/
# Cp config/database. yml. example config/database. yml
# Vi config/database. yml
The content is as follows:
Production:
Database: dashboard
Username: dashboard
Password: topsecret
Encoding: utf8
Adapter: mysql
5. initialize the database
Rake RAILS_ENV = production db: migrate
Note: Some problems may occur.
Question 1:
Rake aborted!
No such file to load -- rdoc/task
Solution documentation
Http://stackoverflow.com/questions/7826442/no-such-file-to-load-rdoc-task
Question 2:
Rake aborted!
Cocould not find rack (~> 1.1.0) amongst Solution
Gem install rack -- version 1.1.2
(If version 1.1.0 is installed, a message is displayed.
Rake aborted!
Can't activate rack-1.1.0, already activated rack-1.1.2)
6. Start the service
Script/server-e production
You can view other server parameters.