Foreman-in​staller fails to run

Hi ,
I am trying to setup foreman server on RHEL 6.5 machine and when running
foreman-installer, I see below error messages:

/Stage[main]/Foreman::Install/Package[foreman-postgresql]/ensure: change
from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y
install foreman-postgresql' returned 1: Error: Nothing to do
/Stage[main]/Foreman::Install/Package[foreman-selinux]/ensure: change from
absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install
foreman-selinux' returned 1: Error: Nothing to do
/Stage[main]/Foreman::Install/Package[ruby193-rubygem-passenger-native]/ensure:
change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0
-y install ruby193-rubygem-passenger-native' returned 1: Error: Nothing to
do
I have subscribed to REDHAT satellite server and unable to go beyond this
step. Could anyone tell me what I might be missing.

Also attached is the log.

Thanks,
Anand Kori

I'm not an expert, but it looks yum is not configured for the required repos.

see: Foreman :: Manual

Red Hat Enterprise Linux 6 and derivatives (CentOS, Scientific Linux)

EPEL is required
On RHEL 6, additionally the Optional and RHSCL 1.0 repositories/channels:

yum-config-manager --enable rhel-6-server-optional-rpms rhel-server-rhscl-6-rpms

and

3.3.1 RPM Packages

Foreman is packaged for the following RPM based distributions:

RHEL and derivatives, version 6
Fedora 19

For most users, it's highly recommended to use the installer as the
packages only provide the software and a standalone Foreman service.
The installer installs these packages, then additionally configures
Foreman to run under Apache and Passenger with PostgreSQL, plus can
configure a complete Puppet setup integrated with Foreman.

Pre-requisites

All RHEL and derivatives must be subscribed to EPEL to provide
additional dependencies. Install epel-release from here to
automatically configure it.

RHEL 6 hosts must also be subscribed to the RHEL 6 Optional repository
or child channel in RHN.

All RHEL and derivatives require Red Hat Software Collections (RHSCL)
1.0 or rebuild, e.g. Software Collections for CentOS. RHSCL is
available to RHEL customers as a separate repository or child channel.
More information on Software Collections for CentOS is available here
and for Scientific Linux it is available here.

To enable both optional and software collections on a RHEL 6 system
using subscription-manager, run:

yum-config-manager --enable rhel-6-server-optional-rpms rhel-server-rhscl-6-rpms

Optionally, the Puppet Labs repository can be configured to obtain the
latest version of Puppet available, instead of the version on EPEL.
See the Puppet Labs Package Repositories documentation on how to
configure these.

Release packages

To set up the repository, foreman-release packages are provided which
add a repo definition to /etc/yum.repos.d. Install the appropriate
release RPM from these lists:

yum localinstall
http://yum.theforeman.org/releases/1.4/el6/x86_64/foreman-release.rpm
yum localinstall
http://yum.theforeman.org/releases/1.4/f19/x86_64/foreman-release.rpm

I set this up on CentOs and did the following: YMMV

yum -y install http://yum.theforeman.org/releases/1.4/el6/x86_64/foreman-release.rpm
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum install centos-release-SCL
yum -y install foreman-installer

Good luck

··· On Wed, Mar 12, 2014 at 2:55 PM, Anand Kori wrote: > Hi , > I am trying to setup foreman server on RHEL 6.5 machine and when running > foreman-installer, I see below error messages: > > /Stage[main]/Foreman::Install/Package[foreman-postgresql]/ensure: change > from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y > install foreman-postgresql' returned 1: Error: Nothing to do > /Stage[main]/Foreman::Install/Package[foreman-selinux]/ensure: change from > absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install > foreman-selinux' returned 1: Error: Nothing to do > > /Stage[main]/Foreman::Install/Package[ruby193-rubygem-passenger-native]/ensure: > change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 > -y install ruby193-rubygem-passenger-native' returned 1: Error: Nothing to > do > I have subscribed to REDHAT satellite server and unable to go beyond this > step. Could anyone tell me what I might be missing. > > Also attached is the log. > > Thanks, > Anand Kori > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.