Added homename fact
This commit is contained in:
parent
c3b7d7629c
commit
c871e91a13
2 changed files with 12 additions and 0 deletions
8
custom/lib/facter/homename.rb
Normal file
8
custom/lib/facter/homename.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
require 'puppet'
|
||||
|
||||
Facter.add('homename') do
|
||||
setcode do
|
||||
Puppet.parse_config
|
||||
Puppet.settings.value('certname')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue