diff options
| -rw-r--r-- | frontends/Rexfile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index fd2dce8..ad26936 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -79,6 +79,7 @@ our $filewalk = sub { our $secrets = sub { read_file './secrets/' . shift }; our @dns_zones = qw/buetow.org dtail.dev foo.zone irregular.ninja snonux.land/; +our @dns_zones_remove = qw/foo.surf snonux.de snonux.me sidewalk.ninja/; our @acme_hosts = qw/buetow.org paul.buetow.org tmp.buetow.org dory.buetow.org footos.buetow.org znc.buetow.org dtail.dev foo.zone irregular.ninja snonux.land/; # UTILITY TASKS @@ -310,6 +311,11 @@ task 'nsd_master', group => 'dnsmaster', on_change => sub { $restart = TRUE }; } + for my $zone (@dns_zones_remove) { + Rex::Logger::info("Dealing with DNS zone removal $zone"); + file "/var/nsd/zones/master/$zone.zone", ensure => 'absent'; + } + service 'nsd' => 'restart' if $restart; service 'nsd', ensure => 'started'; }; |
