Project

General

Profile

RPM's distribution based installation » History » Revision 12

Revision 11 (Anonymous, 06/29/2012 05:31 PM) → Revision 12/31 (Anonymous, 07/01/2012 10:53 AM)

h1. RPM's distribution based installation 

 We maintain a repository for RHEL and Fedora (and clones) - you may add it via: 

 h2. Stable 

 h3. Puppet  

 <pre> 
 yumrepo { 'foreman': 
     descr => 'Foreman Repo', 
     baseurl => 'http://yum.theforeman.org/stable', 
     gpgcheck => '0', 
     enabled => '1' 
 } 
 </pre> 

 h3. Quick and dirty 

 <pre> 
 cat > /etc/yum.repos.d/foreman.repo << EOF 
 [foreman] 
 name=Foreman Repo 
 baseurl=http://yum.theforeman.org/stable 
 gpgcheck=0 
 enabled=1 
 EOF 
 </pre> 

 <pre> 
 yum install foreman 
 </pre> 


 h2. Development 

 1.) For RHEL 6 ensure your system is subscribed to EPEL: 
 <pre> 
 http://fedoraproject.org/wiki/EPEL 
 </pre> 

 2.) Install the foreman-release.rpm for your version of RHEL or Fedora 
 <pre> 
 http://yum.theforeman.org/development/el6/foreman-release.rpm 
 http://yum.theforeman.org/development/f16/foreman-release.rpm 
 http://yum.theforeman.org/development/f17/foreman-release.rpm 
 </pre> 

 3.) Install foreman and other foreman-* packages to add functionality: 
 <pre> 
 foreman                 Foreman server 
 foreman-proxy           Foreman Smart Proxy 
 foreman-cli             Foreman CLI utility 
 foreman-libvirt         libvirt provisioning support 
 foreman-ovirt           ovirt/RHEV provisioning support 
 foreman-ec2 foreman-fog             EC2 Cloud provisioning support (AWS, Rackspace, Linode, Blue Box, StormOnDemand, and many others) 
 foreman-vmware          VMware provisioning support 
 foreman-console         Console additions 
 foreman-mysql           MySQL database support 
 foreman-mysql2          MySQL database support 
 foreman-postgresql      PostgreSQL database support 
 foreman-sqlite          SQLite database support 
 foreman-test            Testing support (dependency rpm's not built yet) 
 foreman-devel           Development support (dependency rpm's not built yet) 
 </pre> 

 5.) Configure 
 <pre> 
 Edit /etc/foreman/settings.yaml and /etc/foreman/database.yml 
 su - foreman -s /bin/bash -c /usr/share/foreman/extras/dbmigrate 
 </pre> 

 6.) Start the foreman service or set up passenger 
 <pre> 
 service foreman start 
 (passenger packages/repos available at http://passenger.stealthymonkeys.com/) 
 </pre> 

 Example RHEL6 setup: 
 <pre> 
 yum install http://mirror.symnds.com/distributions/fedora-epel/6/i386/epel-release-6-7.noarch.rpm  
 yum install http://yum.theforeman.org/development/el6/foreman-release.rpm 
 yum install foreman foreman-proxy foreman-ovirt foreman-mysql foreman-fog foreman-console foreman-cli 
 vi /etc/settings/settings.yaml /etc/settings/database.yml 
 su - foreman -s /bin/bash -c /usr/share/foreman/extras/dbmigrate 
 </pre> 

 h2. Getting the RPMS 

 If you just want to get the rpms: 

 http://yum.theforeman.org