summaryrefslogtreecommitdiff
path: root/manifests/definitions
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2011-08-09 14:26:51 +0200
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2011-08-09 14:26:51 +0200
commitfa66d16ad547f68655b4eab9672592d63821e8ca (patch)
treefad8d658f6d34dda2c9e90d157f392b087f51535 /manifests/definitions
parent92193f6c3793b01d33dfa7fcf192d11c36dba276 (diff)
parente3fdfb9f8b9bb9ec12ce5d0bd3bc240f48fcfd48 (diff)
downloadpuppet-bind-fa66d16ad547f68655b4eab9672592d63821e8ca.tar.gz
puppet-bind-fa66d16ad547f68655b4eab9672592d63821e8ca.tar.bz2
Merge commit 'e3fdfb9f8b9bb9ec12ce5d0bd3bc240f48fcfd48' into test-bind
Diffstat (limited to 'manifests/definitions')
-rw-r--r--manifests/definitions/bind-zone.pp9
1 files changed, 6 insertions, 3 deletions
diff --git a/manifests/definitions/bind-zone.pp b/manifests/definitions/bind-zone.pp
index 4352698..64da5da 100644
--- a/manifests/definitions/bind-zone.pp
+++ b/manifests/definitions/bind-zone.pp
@@ -29,9 +29,10 @@ define bind::zone($ensure=present,
$zone_masters=false) {
common::concatfilepart {"bind.zones.${name}":
- ensure => $ensure,
- notify => Service["bind9"],
- file => "/etc/bind/zones/${name}.conf",
+ ensure => $ensure,
+ notify => Service["bind9"],
+ file => "/etc/bind/zones/${name}.conf",
+ require => Package["bind9"],
}
common::concatfilepart {"named.local.zone.${name}":
@@ -39,6 +40,7 @@ define bind::zone($ensure=present,
notify => Service["bind9"],
file => "/etc/bind/named.conf.local",
content => "include \"/etc/bind/zones/${name}.conf\";\n",
+ require => Package["bind9"],
}
if $is_slave {
@@ -71,6 +73,7 @@ define bind::zone($ensure=present,
ensure => $ensure,
file => "/etc/bind/pri/${name}.conf",
content => template("bind/zone-header.erb"),
+ require => Package["bind9"],
}
file {"/etc/bind/pri/${name}.conf.d":