Project

General

Profile

RPM's distribution based installation » History » Version 11

Anonymous, 06/29/2012 05:31 PM

1 1 Romain Vrignaud
h1. RPM's distribution based installation
2
3
We maintain a repository for RHEL and Fedora (and clones) - you may add it via:
4
5 2 Anonymous
h2. Stable
6
7 1 Romain Vrignaud
h3. Puppet 
8
9
<pre>
10
yumrepo { 'foreman':
11
    descr => 'Foreman Repo',
12
    baseurl => 'http://yum.theforeman.org/stable',
13
    gpgcheck => '0',
14
    enabled => '1'
15
}
16
</pre>
17
18
h3. Quick and dirty
19
20
<pre>
21
cat > /etc/yum.repos.d/foreman.repo << EOF
22
[foreman]
23
name=Foreman Repo
24
baseurl=http://yum.theforeman.org/stable
25
gpgcheck=0
26
enabled=1
27
EOF
28
</pre>
29
30
<pre>
31
yum install foreman
32
</pre>
33
34
35 2 Anonymous
h2. Development
36 1 Romain Vrignaud
37 10 Anonymous
1.) For RHEL 6 ensure your system is subscribed to EPEL:
38 2 Anonymous
<pre>
39
http://fedoraproject.org/wiki/EPEL
40
</pre>
41
42 11 Anonymous
2.) Install the foreman-release.rpm for your version of RHEL or Fedora
43 2 Anonymous
<pre>
44 5 Anonymous
http://yum.theforeman.org/development/el6/foreman-release.rpm
45
http://yum.theforeman.org/development/f16/foreman-release.rpm
46
http://yum.theforeman.org/development/f17/foreman-release.rpm
47 2 Anonymous
</pre>
48 1 Romain Vrignaud
49 2 Anonymous
3.) Install foreman and other foreman-* packages to add functionality:
50 3 Anonymous
<pre>
51 7 Anonymous
foreman               Foreman server
52
foreman-proxy         Foreman Smart Proxy
53
foreman-cli           Foreman CLI utility
54
foreman-libvirt       libvirt provisioning support
55
foreman-ovirt         ovirt/RHEV provisioning support
56
foreman-fog           Cloud provisioning support (AWS, Rackspace, Linode, Blue Box, StormOnDemand, and many others)
57
foreman-vmware        VMware provisioning support
58
foreman-console       Console additions
59
foreman-mysql         MySQL database support
60
foreman-mysql2        MySQL database support
61
foreman-postgresql    PostgreSQL database support
62
foreman-sqlite        SQLite database support
63
foreman-test          Testing support (dependency rpm's not built yet)
64
foreman-devel         Development support (dependency rpm's not built yet)
65 2 Anonymous
</pre>
66
67
5.) Configure
68
<pre>
69
Edit /etc/foreman/settings.yaml and /etc/foreman/database.yml
70 9 Anonymous
su - foreman -s /bin/bash -c /usr/share/foreman/extras/dbmigrate
71 2 Anonymous
</pre>
72
73
6.) Start the foreman service or set up passenger
74
<pre>
75
service foreman start
76
(passenger packages/repos available at http://passenger.stealthymonkeys.com/)
77
</pre>
78
79
Example RHEL6 setup:
80
<pre>
81 6 Anonymous
yum install http://mirror.symnds.com/distributions/fedora-epel/6/i386/epel-release-6-7.noarch.rpm 
82
yum install http://yum.theforeman.org/development/el6/foreman-release.rpm
83 1 Romain Vrignaud
yum install foreman foreman-proxy foreman-ovirt foreman-mysql foreman-fog foreman-console foreman-cli
84 2 Anonymous
vi /etc/settings/settings.yaml /etc/settings/database.yml
85 9 Anonymous
su - foreman -s /bin/bash -c /usr/share/foreman/extras/dbmigrate
86 2 Anonymous
</pre>
87
88 1 Romain Vrignaud
h2. Getting the RPMS
89 6 Anonymous
90 1 Romain Vrignaud
If you just want to get the rpms:
91 6 Anonymous
92 1 Romain Vrignaud
http://yum.theforeman.org