RPM's distribution based installation » History » Version 2
Anonymous, 06/29/2012 03: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 | 2.) Copy the appropriate repo file to /etc/yum.repos.d |
||
43 | <pre> |
||
44 | http://yum.theforeman.org/development/el6/foreman.repo |
||
45 | http://yum.theforeman.org/development/f16/foreman.repo |
||
46 | http://yum.theforeman.org/development/f17/foreman.repo |
||
47 | </pre> |
||
48 | |||
49 | 3.) install foreman and other foreman-* packages to add functionality: |
||
50 | <pre> |
||
51 | foreman - foreman server |
||
52 | foreman-libvirt - libvirt provisioning support |
||
53 | foreman-ovirt - libvirt provisioning support |
||
54 | foreman-fog - Cloud provisioning support (AWS, Rackspace, Linode, Blue Box, StormOnDemand, and many others) |
||
55 | foreman-vmware - VMware provisioning support |
||
56 | foreman-mysql - MySQL database support |
||
57 | foreman-mysql2 - MySQL database support |
||
58 | foreman-postgresql - PostgreSQL database support |
||
59 | foreman-sqlite - SQLite database support |
||
60 | foreman-console - Console additions |
||
61 | foreman-proxy - Foreman Smart Proxy |
||
62 | foreman-test (dependency rpm's not built yet) |
||
63 | foreman-devel (dependency rpm's not built yet) |
||
64 | </pre> |
||
65 | |||
66 | 5.) Configure |
||
67 | <pre> |
||
68 | Edit /etc/foreman/settings.yaml and /etc/foreman/database.yml |
||
69 | cd /usr/share/foreman; RAILS_ENV=production bundle exec rake db:migrate |
||
70 | chown foreman:foreman db/production.sqlite3 #(if using sqlite) |
||
71 | </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 | yum install http://mirror.symnds.com/distributions/fedora-epel/6/i386/epel-release-6-7.noarch.rpm |
||
82 | wget http://yum.theforeman.org/development/el6/foreman.repo -O /etc/yum.repos.d/foreman.repo |
||
83 | yum install foreman foreman-proxy foreman-ovirt foreman-mysql foreman-fog foreman-console |
||
84 | vi /etc/settings/settings.yaml /etc/settings/database.yml |
||
85 | cd /usr/share/foreman; RAILS_ENV=production bundle exec rake db:migrate |
||
86 | </pre> |
||
87 | |||
88 | h2. Getting the RPMS |
||
89 | If you just want to get the rpms: |
||
90 | 1 | Romain Vrignaud | http://yum.theforeman.org |