diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-16 17:48:39 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-16 17:52:00 +0100 |
commit | 8799cb1024f94c617700d6d943d4249abf9a1ff5 (patch) | |
tree | 0e87d024e3a70c2f023e9575e02f4f44044a7838 /manifests | |
parent | Some standard packages (mostly redhat). (diff) | |
download | profiles-8799cb1024f94c617700d6d943d4249abf9a1ff5.tar.gz profiles-8799cb1024f94c617700d6d943d4249abf9a1ff5.tar.xz |
DNS reload zones.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/dns_zones.pp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/dns_zones.pp b/manifests/dns_zones.pp index f4bf630..fbd6061 100644 --- a/manifests/dns_zones.pp +++ b/manifests/dns_zones.pp @@ -24,6 +24,13 @@ class profiles::dns_zones ( $zonedata.each |$zone, $_| { Dns_record <<| zone == $zone |>> + + exec { "reload ${zone}": + command => ['rndc' ,'reload', $zone], + path => ['/usr/bin', '/usr/sbin'], + refreshonly => true, + subscribe => Dns_zone[$zone], + } } $records.each |$zone, $record_entries| { @@ -34,7 +41,10 @@ class profiles::dns_zones ( ["${zone} ${type} ${key} ${value}", $d] } - create_resources(dns_record, Hash($zone_hash), { 'zone' => $zone, }) + create_resources(dns_record, Hash($zone_hash), { + 'zone' => $zone, + }) + } |