Ubuntu12.04 install PuppetDashboard

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.