From: Peter Palfrader Date: Fri, 7 Jun 2013 20:38:25 +0000 (+0000) Subject: rebuild zone after puppet update X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=594500cc35f38991e92bfd907a54ccd12fef3d42;p=mirror%2Fdsa-puppet.git rebuild zone after puppet update --- diff --git a/modules/dnsextras/manifests/entries.pp b/modules/dnsextras/manifests/entries.pp index 0dbf7dede..dcbd18ff3 100644 --- a/modules/dnsextras/manifests/entries.pp +++ b/modules/dnsextras/manifests/entries.pp @@ -4,10 +4,15 @@ class dnsextras::entries { } concat { '/srv/dns.debian.org/puppet-extra/include-debian.org': - #require => Package['exim4-daemon-heavy'] - # notify => Service["nagios"], + notify => Exec["rebuild debian.org zone"], } Concat::Fragment <<| tag == "dnsextra" |>> + + exec { 'rebuild debian.org zone': + path => '/usr/bin:/usr/sbin:/bin:/sbin', + command => 'sh -c "/git/HOOKS/write_zonefile debian.org && rndc reload"', + refreshonly => true, + } }