Fixed homename and puppet_ssldir facts for puppet 3.0.
This commit is contained in:
parent
933316bf72
commit
9ac439f1c9
2 changed files with 7 additions and 3 deletions
|
@ -2,7 +2,9 @@ require 'puppet'
|
|||
|
||||
Facter.add('homename') do
|
||||
setcode do
|
||||
Puppet.parse_config
|
||||
if Facter.value('puppetversion').to_i < 3
|
||||
Puppet.parse_config
|
||||
end
|
||||
Puppet.settings.value('certname')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,7 +2,9 @@ require 'puppet'
|
|||
|
||||
Facter.add('puppet_ssldir') do
|
||||
setcode do
|
||||
Puppet.parse_config
|
||||
Puppet.settings.value('ssldir')
|
||||
if Facter.value('puppetversion').to_i < 3
|
||||
Puppet.parse_config
|
||||
end
|
||||
Puppet.settings.value('ssldir')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue