Project

General

Profile

Foreman installer » History » Version 12

Greg Sutcliffe, 05/07/2012 07:30 PM

1 4 Ohad Levy
{{toc}}
2
3 3 Ohad Levy
h1. Puppet modules for managing Foreman
4 1 Romain Vrignaud
5 5 Ohad Levy
The installer can be used in multiple ways:
6
* Installs Foreman as a standalone application or using apache passenger.
7
* Installs Foreman Proxy
8
* May install an example puppet master setup using passenger as well, including the tweaks required for foreman.
9 1 Romain Vrignaud
10 7 Ohad Levy
h2. Installation
11 1 Romain Vrignaud
12 12 Greg Sutcliffe
h3. A note on older puppet versions
13
14
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:
15
* puppet-foreman_proxy (master isn't parameterized yet, but contains references to experimental DHCP/DNS modules)
16
17 7 Ohad Levy
h3. Using GIT
18 1 Romain Vrignaud
19 12 Greg Sutcliffe
<pre>
20
git clone --recursive git://github.com/theforeman/foreman-installer.git              (for the latest installer)
21
git clone --recursive git://github.com/theforeman/foreman-installer.git -b oldstable (for puppet 0.25.x or lower)
22
</pre>
23 7 Ohad Levy
24
h3. Direct download
25
26
Since we are no longer using one repository for all sources, a single tarball is no longer provided.
27
You can either follow the script below, or download the source code for each module on its own:
28
29
http://github.com/theforeman/puppet-apache/tarball/master
30
http://github.com/theforeman/puppet-foreman/tarball/master
31 1 Romain Vrignaud
http://github.com/theforeman/puppet-foreman_proxy/tarball/master
32 12 Greg Sutcliffe
http://github.com/theforeman/puppet-git/tarball/master
33 7 Ohad Levy
http://github.com/theforeman/puppet-passenger/tarball/master
34
http://github.com/theforeman/puppet-puppet/tarball/master
35
http://github.com/theforeman/puppet-tftp/tarball/master
36 1 Romain Vrignaud
http://github.com/theforeman/puppet-xinetd/tarball/master
37 12 Greg Sutcliffe
38
Optional Modules:
39
40
These provide support for the experimental DHCP/DNS auto configuration in the proxy. Use at your own risk (but send me bug reports :P)
41
http://github.com/GregSutcliffe/puppet-dhcp/tarball/master
42
http://github.com/GregSutcliffe/puppet-dns/tarball/master
43
http://github.com/GregSutcliffe/concat/tarball/master (dependency)
44 7 Ohad Levy
45 1 Romain Vrignaud
h2. Requirements
46 3 Ohad Levy
47 1 Romain Vrignaud
if you are using RHEL, EPEL repo must be enabled http://fedoraproject.org/wiki/EPEL
48 4 Ohad Levy
49 3 Ohad Levy
if you are using Debian (or Ubuntu), see the additional notes in README.debian
50 1 Romain Vrignaud
51 11 Lukas Zapletal
Make sure SELinux is disabled or permissive when running on Fedora/RHEL.
52
53 4 Ohad Levy
h2. Setup/Configuration
54
55 1 Romain Vrignaud
*Please review the variables under */manifests/params.pp*
56
57 8 Ohad Levy
h3. only Foreman
58 1 Romain Vrignaud
59
<pre>
60
echo include foreman | puppet --modulepath /path_to/extracted_tarball
61
</pre>
62 3 Ohad Levy
63 8 Ohad Levy
h3. Both foreman and its proxy:
64 3 Ohad Levy
65 1 Romain Vrignaud
<pre>
66
echo include foreman, foreman_proxy | puppet --modulepath /path_to/extracted_tarball
67 3 Ohad Levy
</pre>
68 1 Romain Vrignaud
69 8 Ohad Levy
h3. On your Puppet Master
70 7 Ohad Levy
71 3 Ohad Levy
if you just want to include the relavant bits to run on your puppet master you may
72 1 Romain Vrignaud
73 7 Ohad Levy
<pre>
74 1 Romain Vrignaud
include foreman::params, foreman::config::enc, foreman::config::reports
75
</pre>
76 3 Ohad Levy
77 8 Ohad Levy
h3. All in one box (Puppet, Foreman, Proxy)
78 1 Romain Vrignaud
79 7 Ohad Levy
if you want to install it all on one box
80
81 1 Romain Vrignaud
<pre>
82 3 Ohad Levy
export MODULE_PATH="/etc/puppet/modules/common"
83
mkdir -p $MODULE_PATH
84 10 Greg Sutcliffe
for mod in apache foreman foreman_proxy git passenger puppet tftp xinetd; do
85 7 Ohad Levy
  mkdir -p $MODULE_PATH/$mod
86
  wget http://github.com/theforeman/puppet-$mod/tarball/master -O - | tar xzvf - -C $MODULE_PATH/$mod --strip-components=1
87
done;
88 3 Ohad Levy
echo include puppet, puppet::server, foreman, foreman_proxy | puppet --modulepath $MODULE_PATH
89
</pre>