Project

General

Profile

Debian-Ubuntu installation by packages » History » Version 3

Greg Sutcliffe, 07/05/2012 08:12 PM

1 1 Romain Vrignaud
h1. Debian-Ubuntu installation by packages
2
3 3 Greg Sutcliffe
{{toc}}
4 1 Romain Vrignaud
5
The Foreman packages should work on the following Debian-based Linux distributions:
6
7 3 Greg Sutcliffe
h2. Distributions
8
9 1 Romain Vrignaud
* Debian Linux 5.0 (Lenny), see [[Debian-Ubuntu installation by packages#Debian-Linux-50-Lenny|notes below]]
10
* Debian Linux 6.0 (Squeeze)
11 3 Greg Sutcliffe
* Ubuntu Linux 12.04 LTS
12
* Ubuntu Linux 11.04
13
* Ubuntu Linux 10.10
14 1 Romain Vrignaud
15
If you encounter any errors during the installation, please file a bug report!
16
17 3 Greg Sutcliffe
h2. Apt Configuration
18 1 Romain Vrignaud
19
Add one of the following lines to your @/etc/apt/sources.list@ (alternatively in a separate file in @/etc/apt/sources.list.d/foreman.list@):
20
21
<pre>
22
# Stable packages
23
deb http://deb.theforeman.org/ stable main
24
25
# Testing packages
26
deb http://deb.theforeman.org/ testing main
27
28
# Nightly builds. Beware: HERE BE DRAGONS
29
deb http://deb.theforeman.org/ nightly main
30
</pre>
31
32
The public key for "secure APT":http://wiki.debian.org/SecureApt can be downloaded "here":http://deb.theforeman.org/foreman.asc
33
34
You can add this key with
35
<pre>
36
apt-key add foreman.asc
37
</pre>
38
39
or combine downloading and registering:
40
<pre>
41
wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add -
42
</pre>
43
44
The key fingerprint is
45
<pre>
46
1DCB 15D1 2CA1 40EE F494  7E57 66CF 053F E775 FF07
47
Foreman Archive Signing Key <packages@theforeman.org>
48
</pre>
49
50 3 Greg Sutcliffe
h2. Stable / Testing Install
51
52 1 Romain Vrignaud
To install Foreman, run
53
54
<pre>
55
sudo apt-get update
56
57
# Depending on the database you want to use with Foreman,
58
# install one of these meta-packages:
59
sudo apt-get install foreman-mysql
60
sudo apt-get install foreman-pgsql
61
sudo apt-get install foreman-sqlite3
62
63
# or install the foreman main package and configure the
64
# database manually in /etc/foreman/database.yml
65
sudo apt-get install foreman
66
</pre>
67
68
The only purpose of the meta-packages @foreman-mysql@, @foreman-pgsql@, and @foreman-sqlite3@ is to pull in any dependencies on the respective database system during the package installation. If you don't want to run the Foreman database on the same host, please use the @foreman@ package and configure the database settings in @/etc/foreman/database.yml@. You cannot use @dbconfig-common@ in this case.
69
70 3 Greg Sutcliffe
h2. Nightly Install
71 1 Romain Vrignaud
72 3 Greg Sutcliffe
The nightly packages are now split by gem dependencies - there are 12 foreman* packages to choose from. These are:
73 1 Romain Vrignaud
74 3 Greg Sutcliffe
Main package
75
* foreman
76
77
Database gems - you need at least one of these
78
* foreman-sqlite3
79
* foreman-mysql2
80
* foreman-mysql
81
* foreman-pgsql
82
83
Optional functionality
84
* foreman-console
85
* foreman-development
86
* foreman-fog
87
* foreman-libvirt
88
* foreman-ovirt
89
* foreman-test
90
* foreman-vmware
91
92
Installation instructions are:
93
<pre>
94
# Install packages  (adjust additional packages as needed)
95
apt-get install foreman foreman-sqlite3 foreman-libvirt
96
97
# Copy sample db config to /etc
98
cp /usr/share/foreman/config/database.yml.example /etc/settings/database.yml
99
100
# Review settings and DB config
101
vi /etc/settings/settings.yaml /etc/settings/database.yml
102
103
# Perform initial DB setup
104
su - foreman -s /bin/bash -c /usr/share/foreman/extras/dbmigrate
105
</pre>
106
107
The packages should auto-run db:migrate if @/etc/settings/database.yml@ exists. So the initial db:migrate is only needed during first install, upgrades should just work.
108
109
h2. Debian Linux 5.0 (Lenny)
110
111
Lenny is unlikely to work with the 1.0 release of Foreman, but this has not yet been tested - let us know if you get it working :)
112
113
For 0.4, users of Debian Lenny will have to install "rake":http://packages.debian.org/lenny-backports/rake and "libsinatra-ruby":http://packages.debian.org/lenny-backports/libsinatra-ruby from @lenny-backports@.
114 1 Romain Vrignaud
115
See http://backports.debian.org/Instructions/ for instructions on how to add @lenny-backports@ to your list of repositories and install a package from it.