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
|
|
@ -28,6 +28,10 @@
|
|||
# re-installs on remote networks.
|
||||
server = <%= puppet_server %>
|
||||
|
||||
# The name to use when handling certificates. Set during
|
||||
# bootstrap based on the fully qualified domain name.
|
||||
certname = <%= homename %>
|
||||
|
||||
# Enable sending reports to puppet server.
|
||||
report = true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue