def initialize
config = get_config
config_hash = Hash.new
config.each do |line|
next if line =~ /^\s*(#.*)?$/
param,value = line.split('=')
param.strip!
value.strip!
value = nil if value.empty?
config_hash[param] = value
end
if config_hash['codedir']
environment_path = File.join(config_hash['codedir'], 'environments')
else
environment_path = File.join(config_hash['confdir'], 'environments')
end
@system_puppet_info = {
:config => config_hash,
:environment_path => environment_path,
:simp_environment_path => File.join(environment_path, 'simp'),
:fake_ca_path => '/var/simp/environments/simp/FakeCA',
:puppet_group => config_hash['group']
}
end