Install Forman on CentOS 7

Installing Forman on CentOS 7 is fairly simple. Lets go through quick install step by step. We already have base CentOS 7 deployed and for the perpose of this tutorial selinux and firewalld are desabled.

1. Use recent version of Puppet

rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm

2. Enable EPEL

yum -y install epel-release https://yum.theforeman.org/releases/1.11/el7/x86_64/foreman-release.rpm

3. Download installer

yum -y install foreman-installer

4. Run installer

foreman-installer

After install you will see information on the screen on how to login to your new Forman web app.
In case you restarted your system or need to change your password execute the following

foreman-rake permissions:reset

Add NTP Module to Forman

puppet module install -i /etc/puppet/environments/production/modules puppetlabs/ntp

We will need to add this module from GUI Configure -> Puppet classes -> Import from Forman

Run puppet agent on your Forman host

puppet agent --test