Project

General

Profile

« Previous | Next » 

Revision e14c941a

Added by Michael Moll about 8 years ago

Also search script config in Puppet AIO paths

Closes GH-413

View differences:

files/foreman-report_v2.rb
end
if RbConfig::CONFIG['host_os'] =~ /freebsd|dragonfly/i
$settings_file = "/usr/local/etc/puppet/foreman.yaml"
$settings_file = '/usr/local/etc/puppet/foreman.yaml'
else
$settings_file = "/etc/puppet/foreman.yaml"
$settings_file = File.exist?('/etc/puppetlabs/puppet/foreman.yaml') ? '/etc/puppetlabs/puppet/foreman.yaml' : '/etc/puppet/foreman.yaml'
end
SETTINGS = YAML.load_file($settings_file)

Also available in: Unified diff