Ubuntu12.04 install puppetforeman premise: aptitude-yinstallpuppetaugeas-toolsaptitude-yinstallpuppetmastersqlite3libsqlite3-rubylibactiverecord-rubygitrakegeminstallpuppetla
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: $ wget 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' identified 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 the database and run sudo RAILS_ENV = production rake db: migrate www.2cto.com 6 on/usr/share/foreman to copy the database. https://raw.github.com/theforeman/puppet-foreman/master/templates/foreman-report.rb.erb Change $ foreman_url = 'to/usr/lib/ruby/1.8/puppet/reports/foreman. rb' http://127.0.0.1:3000 '7. modify the/etc/default/foreman modification content START = yes modify/usr/share/foreman/config/setting. yaml put: puppet_server: write the name of the host on 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 user adding method http://theforeman.org/projects/foreman/wiki/LDAP_Authentication
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