summaryrefslogtreecommitdiff
path: root/manifests/definitions/bind-zone.pp
diff options
context:
space:
mode:
authorRaffael Schmid <raffael@yux.ch>2011-08-09 12:28:05 +0200
committerRaffael Schmid <raffael@yux.ch>2011-08-09 12:28:05 +0200
commite3fdfb9f8b9bb9ec12ce5d0bd3bc240f48fcfd48 (patch)
treea49d358ff4870b7166adca647012ad47d2b55e91 /manifests/definitions/bind-zone.pp
parentb3e5b6e81fad0181f2d884f35efa875c7b7fa0e1 (diff)
downloadpuppet-bind-e3fdfb9f8b9bb9ec12ce5d0bd3bc240f48fcfd48.tar.gz
puppet-bind-e3fdfb9f8b9bb9ec12ce5d0bd3bc240f48fcfd48.tar.bz2
add support for Ubuntu
Diffstat (limited to 'manifests/definitions/bind-zone.pp')
-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 091b929..6114d9b 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"],
}
}
}