]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
add support for Ubuntu
authorRaffael Schmid <raffael@yux.ch>
Tue, 9 Aug 2011 10:28:05 +0000 (12:28 +0200)
committerRaffael Schmid <raffael@yux.ch>
Tue, 9 Aug 2011 10:28:05 +0000 (12:28 +0200)
manifests/classes/bind.pp
manifests/definitions/bind-zone.pp

index 49f33d1bebd8161c5d7b44dc3ff3de57ed05fdf3..d9af70871d8c5acbe017adddabe8ee910d8b2051 100644 (file)
@@ -48,7 +48,7 @@ node "ns1.domain.ltd" {
 */
 class bind {
   case $operatingsystem {
-    "Debian": { include bind::debian }
+    "Debian","Ubuntu": { include bind::debian }
     default: { fail "Unknown $operatingsystem" }
   }
 }
index 091b9293a6a338dc5846638b8584b9c2666ad0ff..6114d9bbfa834e0227c379ece30ba1648f0bae9e 100644 (file)
@@ -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"],
     }
   }
 }