The ACL file is not actually a template, so do this with puppet instead
[mirror/dsa-puppet.git] / modules / named / manifests / geodns.pp
index a0c6d12..2466193 100644 (file)
@@ -33,9 +33,16 @@ class named::geodns inherits named {
                source => 'puppet:///modules/named/common/named.conf.local',
                notify  => Service['bind9'],
        }
-       file { '/etc/bind/named.conf.acl':
-               source => 'puppet:///modules/named/common/named.conf.acl',
-               notify  => Service['bind9'],
+        if (versioncmp($::lsbmajdistrelease, '9') >= 0) {
+               file { '/etc/bind/named.conf.acl':
+                       source => 'puppet:///modules/named/common/named.conf.acl',
+                       notify  => Service['bind9'],
+               }
+       } else {
+               file { '/etc/bind/named.conf.acl':
+                       source => 'puppet:///modules/named/common/named.conf.acl.bind99',
+                       notify  => Service['bind9'],
+               }
        }
        file { '/etc/bind/geodns/zonefiles':
                ensure => directory,