PuppetDashboard Installation Guide forUbuntu

Source: Internet
Author: User

1. install dependency apt-get install-y build-essential irb libmysql-ruby libmysqlclient-dev libopenssl-ruby libreadline-ruby mysql-server rake rdoc ri ruby ruby-dev2. install rubygems download rubygems-1.3.7.tgz
Http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
Unzip and install
Ruby setup. rb3.Create gem as an alternative name for the gem1.8 command: update-alternatives -- install/usr/bin/gem/usr/bin/gem1.8 14. create database dashboard character set utf8;
Create user 'dashboard' @ 'localhost' identified by '20140901 ';
Grant all privileges on dashboard. * TO 'dashboard' @ 'localhost'; 5. Configure/etc/puppet-dashboard/database. yml
Modify the following fields:
Production:
Database: dashboard
Username: dashboard
Password: 123
Encoding: utf8
Adapter: mysql6.Preparing Schemacd/usr/share/puppet-dashboard
Rake RAILS_ENV = production db: migrate7. create a Dashboard user to create a group
Groupadd dashboard
Create user
Useradd dashboard -- no-create-home-g dashboard8. start puppet dashboard (WEBrick is not recommended, and the speed is extremely slow)/usr/share/puppet-dashboard/script/server-e production
Modify/etc/puppet. conf on the puppet master machine and add
[Master]
Reports = store, http
Reporturl = http: // localhost: 3000/reports/upload
# Node_terminus = exec
# External_nodes =/usr/bin/env PUPPET_DASHBOARD_URL = http: // localhost: 3000/opt/puppet-dashboard/bin/external_node9. Start puppet Dashboard (use thin, extremely fast response) http://rubygems.org/gems/thin/versions/1.6.2

Download the three runtime dependencies gem packages and thin gem packages, and install them in sequence.

Install with gem install-l * .. gem

Start thin
Sudo-u dashboard thin start-e production &
Run the preceding command in the/usr/share/puppet-dashboard directory 10. Start and manage the delayed job workers

Sudo-u dashboard env RAILS_ENV = production script/delayed_job-p dashboard-n 4-m start

The interface is as follows:

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.