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:
parent
0479aeb8b8
commit
b470ceb9b6
6 changed files with 75 additions and 4 deletions
|
@ -236,9 +236,12 @@ define dns::zone($role = "master", $master = [], $slaves = [], $source = "AUTO")
|
|||
}
|
||||
file { "${dns::server::chroot}${zonedir}/db.${zonefile}-dynamic":
|
||||
ensure => present,
|
||||
source => [ "puppet:///files/dns/db.${zonefile}-dynamic.${homename}",
|
||||
"puppet:///modules/dns/empty", ],
|
||||
mode => 0640,
|
||||
content => generate(
|
||||
"/bin/sh",
|
||||
"/etc/puppet/modules/dns/files/create_dynamic_records.sh",
|
||||
$homename,
|
||||
$zone),
|
||||
mode => 0640,
|
||||
owner => "root",
|
||||
group => $dns::server::group,
|
||||
require => $operatingsystem ? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue