Project

General

Profile

Installation instructions » History » Version 16

Ohad Levy, 12/14/2009 07:12 AM

1 8 Ohad Levy
{{toc}}
2 1 Ohad Levy
3 8 Ohad Levy
h1. Requirements
4
5 1 Ohad Levy
before you start, make sure you have:
6
7
* Puppet >= 0.24-4
8
* rake >= 0.84 
9 8 Ohad Levy
* rubygems
10
* ruby-sqlite3 (libsqlite3-ruby) if you are going to use sqlite as your database
11
* git (if installing from source )
12 1 Ohad Levy
13
The installation has been successfully tested on RHE5 and Ubuntu 8.04 -  9.04,  for older operating systems you might need additional packages (e.g. sqlite)
14
15 8 Ohad Levy
h1. Download
16 1 Ohad Levy
17 13 Ohad Levy
h2. Puppet Module ready to use
18
19
You may try out the puppet Foreman module, this should take care for most of the basic setup.
20
21
The module could be found here: source:extras/puppet/foreman
22
23
*Its recommend to review the module prior usage.*
24
25 8 Ohad Levy
h2. Latest stable release
26 7 Ohad Levy
27 16 Ohad Levy
Latest stable version can be found "here":http://theforeman.org/attachments/download/53/foreman-0.1-3.tar.bz2
28 8 Ohad Levy
h2. Latest source code
29 7 Ohad Levy
30
You can get the latest source code of Foreman from the git repository hosted at github.
31
This is the preferred way to get Foreman if you want to benefit from the latest improvements. By using the git repository you can also upgrade more easily.
32
33 1 Ohad Levy
to get latest "stable" version do:
34
35 4 Ohad Levy
<pre><code>git clone git://github.com/ohadlevy/foreman.git foreman
36
cd foreman
37 1 Ohad Levy
git submodule init
38
git submodule update
39
</code></pre>
40
41
* if you are behind a proxy or firewall and dont have access to github using the git protocol, use http protocol instead (e.g.)
42 5 Rama Krishna
<pre>
43
git clone http://github.com/ohadlevy/foreman.git foreman
44
cd foreman
45 1 Ohad Levy
sed -i 's/git:\/\//http:\/\//g' .gitmodules
46
git submodule init
47 5 Rama Krishna
git submodule update
48
</pre>
49
50 12 Ohad Levy
h3. Daily snapshot
51
52
You can also fetch the latest daily snapshot of the development version at:
53
http://thetorque.org/foreman-nightly.tar.bz2
54
55 3 Ohad Levy
56 8 Ohad Levy
h1. Initial setup
57 1 Ohad Levy
58 8 Ohad Levy
h2. Database
59 6 Ohad Levy
60
Foreman uses a database, this database can be shared with Puppet store-configs (they are compatible, as Foreman extends the puppet database schema).
61 14 Ohad Levy
By default, SQLite is used, if you want to use other database (e.g. [[FAQ#I-want-to-use-MySQL|MySQL]]) please modify the configuration file under +config/database.yml+.
62 1 Ohad Levy
63 6 Ohad Levy
If you want to share the database with Puppets (storeconfig), just modify +config/database.yml+ to point to the same database configuration as puppet is.
64
65 1 Ohad Levy
In both cases, please use the *production* settings.
66 6 Ohad Levy
67 1 Ohad Levy
to initialize the database schema type:
68 11 Ohad Levy
<pre>
69
RAILS_ENV=production rake db:migrate
70
</pre>
71 6 Ohad Levy
72 8 Ohad Levy
h2. Import Data from Puppet
73 6 Ohad Levy
74
At this point, you might want to go through the [[FAQ]] to see how can you import your data into Foreman.
75
76 8 Ohad Levy
h2. Start The Web Server
77 6 Ohad Levy
78
Start the built in web server by typing:
79 1 Ohad Levy
<code>./script/server -e production</code>
80
81 6 Ohad Levy
and point your browser to http://foreman:3000
82 1 Ohad Levy
83 14 Ohad Levy
If you would like to keep the server running, I would recommend to setup passenger, an puppet manifest example could be found source:extras/puppet/foreman/templates/foreman-vhost.conf.erb
84 1 Ohad Levy
85 8 Ohad Levy
h1. Future Updates
86 1 Ohad Levy
87 9 Ohad Levy
see [[Upgrade instructions]]
88 1 Ohad Levy
89 9 Ohad Levy
h1. Problems?
90
91
see [[Troubleshooting]]