summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2011-02-25 14:07:41 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2011-02-25 14:07:41 +0100
commit92193f6c3793b01d33dfa7fcf192d11c36dba276 (patch)
tree0492ad9d55da8338b767c38d98d2a8038add1a47
parentb3e5b6e81fad0181f2d884f35efa875c7b7fa0e1 (diff)
downloadpuppet-bind-92193f6c3793b01d33dfa7fcf192d11c36dba276.tar.gz
puppet-bind-92193f6c3793b01d33dfa7fcf192d11c36dba276.tar.bz2
bind::zone - purge files when not declared in puppet
-rw-r--r--manifests/definitions/bind-zone.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/definitions/bind-zone.pp b/manifests/definitions/bind-zone.pp
index 091b929..4352698 100644
--- a/manifests/definitions/bind-zone.pp
+++ b/manifests/definitions/bind-zone.pp
@@ -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,
+ }
}
}