Support for dns aliases, dynamic creation of zone files (dependent

on the environment fact) from Facter facts and a fix for environment
support in puppet.
This commit is contained in:
aes_ng 2012-03-02 16:05:37 +02:00
parent 0479aeb8b8
commit b470ceb9b6
6 changed files with 75 additions and 4 deletions

View file

@ -0,0 +1,8 @@
if File.exists?("/etc/dnsaliases")
Facter.add("dnsaliases") do
setcode do
Facter::Util::Resolution.exec('cat /etc/dnsaliases').chomp
end
end
end