Project

General

Profile

RPM's distribution based installation » History » Version 6

Anonymous, 06/29/2012 05:21 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 2 Anonymous
1.) For RHEL6 ensure your system is subscribed EPEL:
38
<pre>
39
http://fedoraproject.org/wiki/EPEL
40
</pre>
41
42 5 Anonymous
2.) Install the foreman-release.rpm for your version
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 2 Anonymous
foreman - Foreman server
52 5 Anonymous
foreman-cli - Foreman CLI utility
53 2 Anonymous
foreman-libvirt - libvirt provisioning support
54 4 Anonymous
foreman-ovirt - ovirt/RHEV provisioning support
55 2 Anonymous
foreman-fog - Cloud provisioning support (AWS, Rackspace, Linode, Blue Box, StormOnDemand, and many others)
56
foreman-vmware - VMware provisioning support
57
foreman-mysql - MySQL database support
58
foreman-mysql2 - MySQL database support
59
foreman-postgresql - PostgreSQL database support
60
foreman-sqlite - SQLite database support
61
foreman-console - Console additions
62
foreman-proxy - Foreman Smart Proxy
63
foreman-test (dependency rpm's not built yet)
64
foreman-devel (dependency rpm's not built yet)
65
</pre>
66
67
5.) Configure
68
<pre>
69
Edit /etc/foreman/settings.yaml and /etc/foreman/database.yml
70
cd /usr/share/foreman; RAILS_ENV=production bundle exec rake db:migrate
71
chown foreman:foreman db/production.sqlite3 #(if using sqlite)
72
</pre>
73
74
6.) Start the foreman service or set up passenger
75
<pre>
76
service foreman start
77
(passenger packages/repos available at http://passenger.stealthymonkeys.com/)
78
</pre>
79
80
Example RHEL6 setup:
81
<pre>
82 6 Anonymous
yum install http://mirror.symnds.com/distributions/fedora-epel/6/i386/epel-release-6-7.noarch.rpm 
83
yum install http://yum.theforeman.org/development/el6/foreman-release.rpm
84 5 Anonymous
yum install foreman foreman-proxy foreman-ovirt foreman-mysql foreman-fog foreman-console foreman-cli
85 2 Anonymous
vi /etc/settings/settings.yaml /etc/settings/database.yml
86
cd /usr/share/foreman; RAILS_ENV=production bundle exec rake db:migrate
87
</pre>
88
89 1 Romain Vrignaud
h2. Getting the RPMS
90 6 Anonymous
91 1 Romain Vrignaud
If you just want to get the rpms:
92 6 Anonymous
93 1 Romain Vrignaud
http://yum.theforeman.org