Foreman installer » History » Version 19
- Table of contents
- Puppet modules for managing Foreman
Puppet modules for managing Foreman¶The installer can be used in multiple ways:
- Installs Foreman as a standalone application or using apache passenger.
- Installs Foreman Proxy
- May install an example puppet master setup using passenger as well, including the tweaks required for foreman.
A note on older puppet versions¶The "master" branches are being updated with parameterized classes. If you are running a version of Puppet which doesn't support this (0.25.x or lower) then you should check out the "oldstable" versions of the modules. We will try to fix bugs in either branch, so bug reports are appreciated in either case. Currently, "oldstable" branches exist for:
- puppet-foreman_proxy (master not parameterized yet, but contains references to experimental DHCP/DNS modules)
- puppet-puppet (master parameterized for both agent and server, see README for details)
git clone --recursive git://github.com/theforeman/foreman-installer.git (for the latest installer) git clone --recursive git://github.com/theforeman/foreman-installer.git -b oldstable (for puppet 0.25.x or lower)
Since we are no longer using one repository for all sources, a single tarball is no longer provided.
You can either follow the script below, or download the source code for each module on its own:
These provide support for the experimental DHCP/DNS auto configuration in the proxy. Use at your own risk (but send me bug reports :P)
http://github.com/theforeman/puppet-concat/tarball/master (dependency for the next two)
if you are using RHEL, EPEL repo must be enabled http://fedoraproject.org/wiki/EPEL
if you are using Debian (or Ubuntu), see the additional notes in README.debian
Make sure SELinux is disabled or permissive when running on Fedora/RHEL.
Please review the variables under */manifests/params.pp
echo include foreman | puppet --modulepath /path_to/extracted_tarball
Both foreman and its proxy:¶
echo include foreman, foreman_proxy | puppet --modulepath /path_to/extracted_tarball
On your Puppet Master¶
if you just want to include the relavant bits to run on your puppet master you may
include foreman::params, foreman::config::enc, foreman::config::reports
All in one box (Puppet, Foreman, Proxy)¶
if you want to install it all on one box (2.6.x and older)
export MODULE_PATH="/etc/puppet/modules/common" mkdir -p $MODULE_PATH for mod in apache foreman foreman_proxy git passenger puppet tftp xinetd; do mkdir -p $MODULE_PATH/$mod wget http://github.com/theforeman/puppet-$mod/tarball/master -O - | tar xzvf - -C $MODULE_PATH/$mod --strip-components=1 done; echo include puppet, puppet::server, foreman, foreman_proxy | puppet --modulepath $MODULE_PATH
if you want to install it all on one box (2.7.x and newer)
export MODULE_PATH="/etc/puppet/modules/common" mkdir -p $MODULE_PATH for mod in apache foreman foreman_proxy git passenger puppet tftp xinetd; do mkdir -p $MODULE_PATH/$mod wget http://github.com/theforeman/puppet-$mod/tarball/master -O - | tar xzvf - -C $MODULE_PATH/$mod --strip-components=1 done; echo include puppet, puppet::server, foreman, foreman_proxy | puppet apply --modulepath $MODULE_PATH