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