Foreman installation has failed

Hi

I have got quite strange case - foreman-installer fails on many host with
same error:

foreman-installer -i

Could not get default values, check log file at
/var/log/foreman-installer/foreman-installer.log for more information

in the log I see the following:

rror: Undefined variable "::puppetmaster"; Undefined variable
"puppetmaster" at
/usr/share/foreman-installer/modules/puppet/manifests/params.pp:94 on node
hostname_is_hided^[[0m

^[[1;31mError: Undefined variable "::puppetmaster"; Undefined variable
"puppetmaster" at
/usr/share/foreman-installer/modules/puppet/manifests/params.pp:94 on
node hostname_is_hidedl^[[0m

[ERROR 2015-06-23 00:49:43 main] Could not get default values, cannot
continue

I wend further and in debug mode:

ruby -rdebug /usr/sbin/foreman-installer -i

Debug.rb

Emacs support available.

/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:57:

(rdb:1) n

/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:143:

(rdb:1)

n

/usr/sbin/foreman-installer:2:require 'rubygems'

(rdb:1)

n

/usr/sbin/foreman-installer:3:require 'kafo'

(rdb:1)

n

/usr/sbin/foreman-installer:8:config_filename = File.basename($0) + ".yaml"

(rdb:1)

n

/usr/sbin/foreman-installer:11:if File.exist?('config/' + config_filename)

(rdb:1)

n

/usr/sbin/foreman-installer:14: CONFIG_FILE = '/etc/foreman/' +
config_filename

(rdb:1)

n

/usr/sbin/foreman-installer:18:@result = Kafo::KafoConfigure.run

(rdb:1)

n

/usr/share/ruby/vendor_ruby/puppet/settings.rb:1319: `Could not find value
for $confdir' (Puppet::Settings::InterpolationError)

    from /usr/share/ruby/vendor_ruby/puppet/settings.rb:1081:in 

`which_configuration_file'

    from /usr/share/ruby/vendor_ruby/puppet/settings.rb:608:in 

`parse_config_files'

    from /usr/share/ruby/vendor_ruby/puppet/settings.rb:269:in 

`initialize_global_settings'

    from /usr/share/ruby/vendor_ruby/puppet.rb:153:in 

`do_initialize_settings_for_run_mode'

    from /usr/share/ruby/vendor_ruby/puppet.rb:139:in 

`initialize_settings'

    from 

/usr/share/gems/gems/kafo_parsers-0.0.5/lib/kafo_parsers/puppet_module_parser.rb:36:in
`initialize'

    from 

/usr/share/gems/gems/kafo_parsers-0.0.5/lib/kafo_parsers/puppet_module_parser.rb:18:in
`new'

    from 

/usr/share/gems/gems/kafo_parsers-0.0.5/lib/kafo_parsers/puppet_module_parser.rb:18:in
`parse'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/puppet_module.rb:44:in `parse'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/configuration.rb:85:in `block in
modules'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/configuration.rb:85:in `map'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/configuration.rb:85:in `modules'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/kafo_configure.rb:172:in `modules'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/kafo_configure.rb:154:in `params'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/kafo_configure.rb:187:in
`set_parameters'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/kafo_configure.rb:66:in
`initialize'

    from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:126:in 

`new'

    from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:126:in 

`run'

    from 

/usr/share/gems/gems/kafo-0.6.6/lib/kafo/kafo_configure.rb:118:in `run'

    from /usr/sbin/foreman-installer:18:in `<main>'

/usr/share/ruby/vendor_ruby/puppet/settings.rb:1319: raise
InterpolationError, "Error converting value for param '#{name}': #{err}",
err.backtrace

(rdb:1)

From what it looks like that foreman unable to get puppet enviroment
variable like confdir, etc. Although I have no idea why. Puppet
(opensource) is running fine and happy.

Any idea what could cause the issue? I was able to reproduce this issue on
any CentOS 7 box.

Puppet version is 3.8.1 open source. Foreman 1.8