Installation instructions » History » Revision 26
« Previous |
Revision 26/77
(diff)
| Next »
Ohad Levy, 04/21/2010 09:54 AM
- Table of contents
- Requirements
- Download
- Initial setup
- Future Updates
- Problems?
Requirements¶
before you start, make sure you have:
- Puppet >= 0.24-4
- rake >= 0.84
- rubygems
- rack = 1.0.1
- ruby-sqlite3 (libsqlite3-ruby) if you are going to use sqlite as your database
- git (if installing from source )
The installation has been successfully tested on RHE5 and Ubuntu 8.04 - 9.10, for older operating systems you might need additional packages (e.g. sqlite)
Download¶
Puppet Module ready to use¶
You may try out the puppet Foreman module, this should take care for most of the basic setup.
The module could be downloaded via: http://github.com/ohadlevy/puppet-foreman/tarball/master
you may use puppet (if you don't want to add it as a module to your puppetmaster) in the following way:
if you are using RHE5, EPEL repo must be enabled http://fedoraproject.org/wiki/EPEL
If you are using puppet store configs please set $using_store_configs to true in foreman/manifests/init.pp.
If you want this module to configure passenger as well, set $using_passenger to true in foreman/manifests/init.pp
usage:
echo include foreman | puppet --verbose --modulepath /path_to/tarball
Its recommend to review the module prior usage.
RPM¶
We maintain a repository for RHE5 (and clones) - you may add it via:
Puppet¶
yumrepo { 'foreman': descr => 'Foreman Repo', baseurl => 'http://theforeman.org/repo', gpgcheck => '0', enabled => '1' }
Quick and dirty¶
cat > /etc/yum.repos.d/foreman.repo << EOF [foreman] name=Foreman Repo baseurl=http://theforeman.org/repo gpgcheck=0 enabled=1 EOF
yum install foreman
Additional rpms might be required from epel repo's
if you just want to get the rpms:
http://theforeman.org/repo/el5/noarch/foreman-0.1.4-3.noarch.rpm
http://theforeman.org/repo/el5/noarch/rubygem-rack-1.0.1-1.noarch.rpm
and
http://theforeman.org/repo/el5/SRPM/foreman-0.1.4-2.src.rpm
Latest stable release¶
Latest stable version can be found here
Latest source code¶
You can get the latest source code of Foreman from the git repository hosted at github.
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.
to get latest "stable" version do:
git clone git://github.com/ohadlevy/foreman.git foreman
cd foreman
git submodule init
git submodule update
- if you are behind a proxy or firewall and dont have access to github using the git protocol, use http protocol instead (e.g.)
git clone http://github.com/ohadlevy/foreman.git foreman cd foreman sed -i 's/git:\/\//http:\/\//g' .gitmodules git submodule init git submodule update
Daily snapshot¶
You can also fetch the latest daily snapshot of the development version at:
http://thetorque.org/foreman-nightly.tar.bz2
Initial setup¶
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 to point to the same database configuration as puppet is.
In both cases, please use the production settings.
to initialize the database schema type:
RAILS_ENV=production rake db:migrate
Import Data from Puppet¶
At this point, you might want to go through the FAQ to see how can you import your data into Foreman.
Start The Web Server¶
if you installed via rpm, just start the foreman service, or start the built in web server by typing:./script/server -e production
and point your browser to http://foreman:3000
If you would like to keep the server running, its recommend to setup passenger or use the RPM.
example usage with passenger can be found here: http://github.com/ohadlevy/puppet-foreman/blob/master/foreman/templates/foreman-vhost.conf.erb
Future Updates¶
Problems?¶
see Troubleshooting
Updated by Ohad Levy over 14 years ago · 77 revisions