Initial setup » History » Version 5
aurelien vaillant, 07/16/2012 06:13 AM
1 | 1 | Romain Vrignaud | h1. Initial setup |
---|---|---|---|
2 | |||
3 | h2. Configuration |
||
4 | |||
5 | Foreman configuration is managed from two places; a configuration file *config/settings.yaml* and from the *SETTINGS/Foreman Settings* page. A full description of the configuration options is given [[foreman_configuration|here]] |
||
6 | |||
7 | h2. Database |
||
8 | |||
9 | Foreman uses a database, this database can be shared with Puppet store-configs (they are compatible, as Foreman extends the puppet database schema). |
||
10 | 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+. |
||
11 | |||
12 | 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. |
||
13 | |||
14 | In both cases, please use the *production* settings. |
||
15 | |||
16 | to initialize the database schema type: |
||
17 | <pre> |
||
18 | cd <foreman installation path> && RAILS_ENV=production rake db:migrate |
||
19 | </pre> |
||
20 | |||
21 | 4 | aurelien vaillant | On foreman 1.0 use bundle: |
22 | 5 | aurelien vaillant | <pre> |
23 | 4 | aurelien vaillant | cd <foreman installation path> && RAILS_ENV=production bundle exec rake db:migrate |
24 | 5 | aurelien vaillant | </pre> |
25 | 4 | aurelien vaillant | |
26 | 1 | Romain Vrignaud | h2. Import Data from Puppet |
27 | |||
28 | At this point, you might want to go through the [[FAQ]] to see how can you import your data into Foreman. |
||
29 | |||
30 | h2. Start The Web Server |
||
31 | |||
32 | if you installed via rpm, just start the foreman service, or start the built in web server by typing: |
||
33 | <code>./script/server -e production</code> |
||
34 | |||
35 | and point your browser to http://foreman:3000 |
||
36 | |||
37 | If you would like to keep the server running, its recommend to setup passenger or use the RPM. |
||
38 | 3 | Ohad Levy | example usage with passenger can be found here: http://github.com/theforeman/puppet-foreman/blob/master/templates/foreman-vhost.conf.erb |
39 | 1 | Romain Vrignaud | |
40 | h2. Getting your Puppet Reports into Foreman |
||
41 | |||
42 | Read [[Puppet_Reports]] to learn how to get your nodes to report to Foreman. |