User Tools

Site Tools


sysadmin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sysadmin [2013/06/05 11:20]
mantis [Installation]
sysadmin [2013/06/05 13:21] (current)
mantis [Installation]
Line 1: Line 1:
 +====== Automated machine administration with puppet and foreman ======
 +**WIP!**
 +
 +Puppet:
 +
 +Foreman:
 +
 +===== Installation =====
 +
 +Install puppet ([[http://​docs.puppetlabs.com/​guides/​puppetlabs_package_repositories.html|more info]]).
 +<code bash>
 +wget http://​apt.puppetlabs.com/​puppetlabs-release-precise.deb
 +dpkg -i puppetlabs-release-precise.deb
 +apt-get update && apt-get install puppet
 +</​code>​
 +
 +
 +Install foreman (as of version 1.1, see[[http://​theforeman.org/​manuals/​1.1/​|foreman docs]])
 +<code bash>
 +echo "deb http://​deb.theforeman.org/​ precise stable"​ > /​etc/​apt/​sources.list.d/​foreman.list
 +wget -q http://​deb.theforeman.org/​foreman.asc -O- | apt-key add -
 +apt-get update && apt-get install foreman-installer
 +</​code>​
 +
 +Configure foreman
 +<code bash>
 +ruby /​usr/​share/​foreman-installer/​generate_answers.rb
 +</​code>​
 +and get some coffee. This will run for a while.
 +
 +Your config is stored here
 +/​usr/​share/​foreman-installer/​foreman_installer/​answers.yaml
 +
 +
 +===== Usage =====
 +
 +
 +
 +