ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
How to Install Foreman 1.2.2 with Puppet Server
Author : Kanwar Batra
Intended Audience: Architects, System Administrators, Technical Managers, CTO's
Foreman Architecture
A Foreman installation will always contain a central foreman instance that is responsible for providing the Web based GUI, node configurations,
initial host configuration files, etc. However, if the foreman installation supports unattended installations then other operations need to be
performed to fully automate this process. The smart proxy manages remote services and is generally installed with all Foreman installations to
allow for TFTP, DHCP, DNS, and Puppet, and the Puppet CA.
Pre-requisite required packages for Foreman
Foreman is a rails based application and need dependent packages including EPEL packages
rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm
rpm -ivh ftp://mirror.cs.princeton.edu/pub/mirrors/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install make
yum -y install facter-1.6*
yum -y install hiera
yum -y install libselinux-ruby
yum -y install ruby-augeas
yum -y install ruby-shadow
yum -y install ruby-rgen
yum install libc.so.6
yum install libstdc++.so.6
yum -y install gcc
yum -y install rubygems
rpm -ivh mhttp://yum.puppetlabs.com/el/6/products/x86_64/puppet-3.3.0-1.el6.noarch.rp
gem install rake rails (if not already loaded)
gem install sinatra (if not already loaded)
Installing Foreman
Reference Document : http://projects.theforeman.org/projects/foreman/wiki/Installation_Guide
While foreman lists all of the facts about it's install process you may find that during install some of the above missing rpm's need to be installed
prior to Foreman installation.
is Staged for Instlal using the yum repo and has 2 rpm's . Run in the order listed belowForeman Software
yum -y install http://yum.theforeman.org/releases/1.1/el6/x86_64/foreman-release.rpm
yum -y install foreman-installer
The next step installs Foreman and the puppet master with Passenger and theRunning the Installer: Smart Proxy by default.
ruby /usr/share/foreman-installer/generate_answers.rb
Post Install
After Puppet runs, Foreman will be accessible at https://fqdn/ with a default username/password of "admin" and "changeme".
To complete the installation, click on More > Configuration > Smart Proxies and add a new proxy with the URL https://fqdn:844
3/.
This install was done and documented on the nf_lnx_aws (Amazon instance on EBS backed Storage).
References
http://theforeman.org/manuals/1.1/index.html

More Related Content

Foreman and Puppet Master Install process - Customer Used Case

  • 1. How to Install Foreman 1.2.2 with Puppet Server Author : Kanwar Batra Intended Audience: Architects, System Administrators, Technical Managers, CTO's Foreman Architecture A Foreman installation will always contain a central foreman instance that is responsible for providing the Web based GUI, node configurations, initial host configuration files, etc. However, if the foreman installation supports unattended installations then other operations need to be performed to fully automate this process. The smart proxy manages remote services and is generally installed with all Foreman installations to allow for TFTP, DHCP, DNS, and Puppet, and the Puppet CA. Pre-requisite required packages for Foreman Foreman is a rails based application and need dependent packages including EPEL packages rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm rpm -ivh ftp://mirror.cs.princeton.edu/pub/mirrors/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm yum install make yum -y install facter-1.6* yum -y install hiera yum -y install libselinux-ruby yum -y install ruby-augeas yum -y install ruby-shadow yum -y install ruby-rgen yum install libc.so.6 yum install libstdc++.so.6 yum -y install gcc yum -y install rubygems
  • 2. rpm -ivh mhttp://yum.puppetlabs.com/el/6/products/x86_64/puppet-3.3.0-1.el6.noarch.rp gem install rake rails (if not already loaded) gem install sinatra (if not already loaded) Installing Foreman Reference Document : http://projects.theforeman.org/projects/foreman/wiki/Installation_Guide While foreman lists all of the facts about it's install process you may find that during install some of the above missing rpm's need to be installed prior to Foreman installation. is Staged for Instlal using the yum repo and has 2 rpm's . Run in the order listed belowForeman Software yum -y install http://yum.theforeman.org/releases/1.1/el6/x86_64/foreman-release.rpm yum -y install foreman-installer The next step installs Foreman and the puppet master with Passenger and theRunning the Installer: Smart Proxy by default. ruby /usr/share/foreman-installer/generate_answers.rb Post Install After Puppet runs, Foreman will be accessible at https://fqdn/ with a default username/password of "admin" and "changeme". To complete the installation, click on More > Configuration > Smart Proxies and add a new proxy with the URL https://fqdn:844 3/. This install was done and documented on the nf_lnx_aws (Amazon instance on EBS backed Storage). References http://theforeman.org/manuals/1.1/index.html