]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
bind::zone - purge files when not declared in puppet
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Fri, 25 Feb 2011 13:07:41 +0000 (14:07 +0100)
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Fri, 25 Feb 2011 13:07:41 +0000 (14:07 +0100)
manifests/definitions/bind-zone.pp

index 091b9293a6a338dc5846638b8584b9c2666ad0ff..435269843fa0b20d9f40586af58bd0492c51b1c8 100644 (file)
@@ -72,5 +72,14 @@ define bind::zone($ensure=present,
       file   => "/etc/bind/pri/${name}.conf",
       content => template("bind/zone-header.erb"),
     }
+
+    file {"/etc/bind/pri/${name}.conf.d":
+      ensure => directory,
+      mode   => 0700,
+      purge  => true,
+      recurse => true,
+      backup  => false,
+      force   => true,
+    }
   }
 }