277c4c9fdf
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
9 lines
221 B
Ruby
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
|