From 594500cc35f38991e92bfd907a54ccd12fef3d42 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 7 Jun 2013 20:38:25 +0000 Subject: [PATCH] rebuild zone after puppet update --- modules/dnsextras/manifests/entries.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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, + } } -- 2.20.1