Ubuntu12.04 install puppet foreman

Source: Internet
Author: User


Ubuntu12.04 install puppet foreman prerequisites: aptitude-y install puppet augeas-tools aptitude-y install puppetmaster sqlite3 libsqlite3-ruby libactiverecord-ruby git rakeem install always slave has been installed puppetmaster side 1. install mysql-foreman etc/apt/sources. list file: the content is as follows deb http://deb.theforeman.org/stable mainYou then need to download the Foreman GPG key, add it to APT and update like so: $ wge T http://deb.theforeman.org/foreman.asc$ sudo apt-key add foreman. asc $ sudo apt-get update 2. apt-get install foreman-mysql (note that the installation may fail, put/etc/resolve. add nameserver 8.8.8.8 to the conf file) 2. install other software packages www.2cto.com $ sudo apt-get install-y libmysql-ruby libmysqlclient-dev mysql-server 3. CREATE a DATABASE sudo mysql-uroot-pmysql> create database foreman character set utf8; mysql> create user 'foreman '@ 'localhost' IDENTI Fied by 'Password'; mysql> grant all privileges on foreman. * TO 'foreman '@ 'localhost'; mysql> flush privileges; 4. edit/usr/share/foreman/config/database. yml content is as follows: www.2cto.com production: database: foreman username: foreman password: password encoding: utf8 adapter: mysql 5. initialize database in/usr/share/foreman execute sudo RAILS_ENV = production rake db: migrate www.2cto.com 6 copy https://raw.github.com/theforeman/puppe T-foreman/master/templates/foreman-report.rb.erb to/usr/lib/ruby/1.8/puppet/reports/foreman. rb modify $ foreman_url = 'HTTP: // 127.0.0.1: 3000 '7. modify/etc/default/foreman modify START = yes Modify/usr/share/foreman/config/setting. write: puppet_server to the Host Name of your master. 8. start foreman www.2cto.com # service foreman start. When foremanweb is enabled, Unable to find internal system admin account-Recreating will appear... solution: run # RAILS_ENV = production rake permissions in/usr/share/foreman: add the first user/usr/share/foreman/config/setting in reset. modify yaml: login: false to true foreman web to open the setting page and restart foreman # service foreman restart to refresh the web interface of foreman. There is an account in the upper right corner, add a new user www.2cto.com to add the password. Official Add User method http://theforeman.org/projects/foreman/wiki/LDAP_Authentication

Related Article

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.