Installation instructions » History » Version 9
Ohad Levy, 09/21/2009 03:23 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 | 8 | Ohad Levy | h2. Latest stable release |
18 | 7 | Ohad Levy | |
19 | Latest stable version can be found "here":http://theforeman.org/attachments/download/21/foreman-0.1.tar.bz2 |
||
20 | |||
21 | 8 | Ohad Levy | h2. Latest source code |
22 | 7 | Ohad Levy | |
23 | You can get the latest source code of Foreman from the git repository hosted at github. |
||
24 | 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. |
||
25 | |||
26 | 1 | Ohad Levy | to get latest "stable" version do: |
27 | |||
28 | 4 | Ohad Levy | <pre><code>git clone git://github.com/ohadlevy/foreman.git foreman |
29 | cd foreman |
||
30 | 1 | Ohad Levy | git submodule init |
31 | git submodule update |
||
32 | </code></pre> |
||
33 | |||
34 | * if you are behind a proxy or firewall and dont have access to github using the git protocol, use http protocol instead (e.g.) |
||
35 | 5 | Rama Krishna | <pre> |
36 | git clone http://github.com/ohadlevy/foreman.git foreman |
||
37 | cd foreman |
||
38 | 1 | Ohad Levy | sed -i 's/git:\/\//http:\/\//g' .gitmodules |
39 | git submodule init |
||
40 | 5 | Rama Krishna | git submodule update |
41 | </pre> |
||
42 | |||
43 | 3 | Ohad Levy | |
44 | 8 | Ohad Levy | h1. Initial setup |
45 | 1 | Ohad Levy | |
46 | 8 | Ohad Levy | h2. Database |
47 | 6 | Ohad Levy | |
48 | Foreman uses a database, this database can be shared with Puppet store-configs (they are compatible, as Foreman extends the puppet database schema). |
||
49 | By default, SQLite is used, if you want to use other database (e.g. MySQL) please modify the configuration file under +config/database.yml+. |
||
50 | 1 | Ohad Levy | |
51 | 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. |
52 | |||
53 | 1 | Ohad Levy | In both cases, please use the *production* settings. |
54 | 6 | Ohad Levy | |
55 | 1 | Ohad Levy | to initialize the database schema type: |
56 | <code>RAILS_ENV=production rake db:migrate</code> |
||
57 | 6 | Ohad Levy | |
58 | 8 | Ohad Levy | h2. Import Data from Puppet |
59 | 6 | Ohad Levy | |
60 | At this point, you might want to go through the [[FAQ]] to see how can you import your data into Foreman. |
||
61 | |||
62 | 8 | Ohad Levy | h2. Start The Web Server |
63 | 6 | Ohad Levy | |
64 | Start the built in web server by typing: |
||
65 | 1 | Ohad Levy | <code>./script/server -e production</code> |
66 | |||
67 | 6 | Ohad Levy | and point your browser to http://foreman:3000 |
68 | |||
69 | 1 | Ohad Levy | If you would like to keep the server running, I would recommend to setup passenger, an puppet manifest example could be found [[Passenger setup example|here]]. |
70 | |||
71 | |||
72 | 8 | Ohad Levy | h1. Future Updates |
73 | 1 | Ohad Levy | |
74 | 9 | Ohad Levy | see [[Upgrade instructions]] |
75 | 1 | Ohad Levy | |
76 | 9 | Ohad Levy | h1. Problems? |
77 | |||
78 | see [[Troubleshooting]] |