Unable to install Foreman on my puppet master server

Hi Team,
I am not able to install foreman in my pupper master server.
I have tried below command but it gives me error. PFB.

[root@server foremanruby]# foreman-installer
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:54:in lookup': Could not parse for environment production: no 'environments' in {:root_environment=>#<Puppet::Node::Environment:0x7fdfc95e0be0 @manifest=:no_manifest, @name=:"*root*", @modulepath=[], @watching=true, @config_version=nil>, :current_environment=>#<Puppet::Node::Environment:0x7fdfc95e0be0 @manifest=:no_manifest, @name=:"*root*", @modulepath=[], @watching=true, @config_version=nil>} at top of [[0, nil, nil]] (Puppet::Error) from /usr/lib/ruby/site_ruby/1.8/puppet.rb:238:inlookup'
from /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:264:in
future_parser?' from /usr/lib/ruby/site_ruby/1.8/puppet.rb:271:infuture_parser?'
from
/usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_factory.rb:12:in parser' from /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:550:inperform_initial_import'
from /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:285:in
known_resource_types' from /usr/lib/ruby/site_ruby/1.8/puppet/resource/type_collection_helper.rb:5:inknown_resource_types'
from
/usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:120:in import' from /usr/lib/ruby/gems/1.8/gems/kafo_parsers-0.0.2/lib/kafo_parsers/puppet_module_parser.rb:38:ininitialize'
from
/usr/lib/ruby/gems/1.8/gems/kafo_parsers-0.0.2/lib/kafo_parsers/puppet_module_parser.rb:16:in
new' from /usr/lib/ruby/gems/1.8/gems/kafo_parsers-0.0.2/lib/kafo_parsers/puppet_module_parser.rb:16:inparse'
from
/usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/puppet_module.rb:44:in
parse' from /usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/configuration.rb:75:inmodules'
from
/usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/configuration.rb:75:in map' from /usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/configuration.rb:75:inmodules'
from
/usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/kafo_configure.rb:207:in
modules' from /usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/kafo_configure.rb:189:inparams'
from
/usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/kafo_configure.rb:226:in
set_parameters' from /usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/kafo_configure.rb:67:ininitialize'
from
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in new' from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:inrun'
from
/usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/kafo_configure.rb:117:in
run' from /usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/kafo_configure.rb:116:incatch'
from
/usr/lib/ruby/gems/1.8/gems/kafo-0.5.4/lib/kafo/kafo_configure.rb:116:in
`run'
from /usr/sbin/foreman-installer:54
[root@server foremanruby]#

I have installed below.

[root@server foremanruby]# rpm -qa |grep puppet
puppetlabs-release-22.0-2.noarch
puppet-server-3.8.7-1.el6.noarch
puppet-3.8.7-1.el6.noarch
[root@server foremanruby]# rpm -qa |grep foreman
foreman-release-1.9.3-1.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-installer-1.5.1-1.el6.noarch
[root@server foremanruby]#

My centos version is below.

[root@server foremanruby]# cat /etc/*-release
CentOS release 6.6 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
[root@server foremanruby]#

This is an extremely old version of Foreman, I'd recommend retrying
with the latest version (1.15.4)

Greg

··· On Fri, 2017-10-06 at 23:33 -0700, Masoom Shaikh wrote: > foreman-installer-1.5.1-1.el6.noarch
That's the version Foreman deploys with their repo.
foreman-installer (1.5.1-1)
Both in Ubuntu and CentOS. Just follow the how-to in their webpage and that's the one you'll get.
Where can I download the latest version?

Thanks!


··· On Monday, 9 October 2017 14:07:36 UTC+2, Greg Sutcliffe wrote:

On Fri, 2017-10-06 at 23:33 -0700, Masoom Shaikh wrote:
foreman-installer-1.5.1-1.el6.noarch

This is an extremely old version of Foreman, I'd recommend retrying
with the latest version (1.15.4)

Greg

That's the version Foreman deploys with their repo.
foreman-installer (1.5.1-1)
Both in Ubuntu and CentOS. Just follow the how-to in their webpage and
that's the one you'll get.
We can't be held responsible for how-to's that we didn't write. All documents on the internet tend to age fast. 1.5 is over 3 years (and 11 major releases) out of date.

Where can I download the latest version?
We always recommend using *our* documentation and quickstart guides for new installs. You should start at https://theforeman.org and click the Quickstart link at the top.

Greg


··· On 05/12/17 12:37, Diego Lucas Jiménez wrote: