puppet-nova/lib/facter/ipa_hostname.rb
Juan Antonio Osorio Robles 277c4c9fdf novajoin: Optionally configure kerberos
This enables the puppet module to optionally create a minimal kerberos
configuration. This is specially useful when running novajoin inside a
container, since when running with SELinux enabled, we sometimes cannot
load the the kerberos configuration from the host due to some includes
pointing to /var/lib.

Change-Id: I554125fd6b48e620370f9e3a6061bbdc1d55b0ae
2018-03-13 20:31:41 +02:00

9 lines
221 B
Ruby

Facter.add(:ipa_hostname) do
confine kernel: 'Linux'
setcode do
if File.exist?('/etc/ipa/default.conf')
Facter::Util::Resolution.exec('grep xmlrpc_uri /etc/ipa/default.conf | cut -d/ -f3')
end
end
end