script => bind
}
+ package { 'geoip-database':
+ ensure => installed,
+ }
+
#site::aptrepo { 'geoip':
# url => 'http://db.debian.org/debian-admin',
# suite => 'lenny-bind-geoip',
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,