Project

General

Profile

Installation instructions » History » Revision 6

Revision 5 (Rama Krishna, 09/11/2009 06:14 AM) → Revision 6/77 (Ohad Levy, 09/11/2009 09:19 AM)

h2. Requirements 

 before you start, make sure you have: 

 * Puppet >= 0.24-4 
 * rake >= 0.84  
 * git 

 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) 

 h2. Download 

 to get latest "stable" version do: 

 <pre><code>git clone git://github.com/ohadlevy/foreman.git foreman 
 cd foreman 
 git submodule init 
 git submodule update 
 </code></pre> 

 * if you are behind a proxy or firewall and dont have access to github using the git protocol, use http protocol instead (e.g.) 
 <pre> 
 git clone http://github.com/ohadlevy/foreman.git foreman 
 cd foreman 
 sed -i 's/git:\/\//http:\/\//g' .gitmodules 
 git submodule init 
 git submodule update 
 </pre> 


 h2. Initial setup 

 h3. Database 

 Foreman uses a database, this database can be shared with Puppet store-configs (they are compatible, as Foreman extends the puppet database schema). 
 By default, SQLite is used, if you want to use other database (e.g. MySQL) please modify the configuration file under +config/database.yml+. 

 If you want to share the database with Puppets (storeconfig), just modify +config/database.yml+ (storeconfig) edit config/database.yml and configure the *production* database to point to the same database, if not, you can use any other database configuration as puppet is. rails support(MySQL, Sqlite etc) 

 In both cases, please use the *production* settings. 

 to initialize the database schema type: 
 <code>RAILS_ENV=production rake db:migrate</code> 

 h3. Import Data from Puppet 

 At this point, you might want 
 to go through start the [[FAQ]] to see how can you import your data into Foreman. 

 h3. Start The Web Server 

 Start the built in web server by typing: server: 
 <code>./script/server -e production</code> 

 and point your browser to http://foreman:3000 

 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]]. 


 

 Great - everything works! now learn what you can do by reading the [[FAQ]] 

 h2. Future Updates 

 If you would like to update to the latest version of the foreman, execute the following on the foreman directory 
 <pre><code>git pull 
 git submodule init 
 git submodule update 
 RAILS_ENV=production rake db:migrate 
 </code></pre> 

 and restart your web service.