X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fnamed%2Fmanifests%2Fgeodns.pp;h=7b6324c1bffd27a13f7d2d049584d362c82c6ec1;hb=e4d38fd267b7b5aa6943e2d14c9dfb2bab96a206;hp=a0c6d12025e3537e59c8b7310d7b094da94f2b77;hpb=f6e3a2e70e9571c48145865b1c5663ca150b9932;p=mirror%2Fdsa-puppet.git diff --git a/modules/named/manifests/geodns.pp b/modules/named/manifests/geodns.pp index a0c6d1202..7b6324c1b 100644 --- a/modules/named/manifests/geodns.pp +++ b/modules/named/manifests/geodns.pp @@ -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, @@ -57,6 +64,12 @@ class named::geodns inherits named { mode => '0440', } file { '/etc/cron.d/dsa-boot-geodnssync': - source => 'puppet:///modules/named/common/cron-geo' + ensure => absent; + } + concat::fragment { 'dsa-puppet-stuff--geodns-boot': + target => '/etc/cron.d/dsa-puppet-stuff', + content => @(EOF) + @reboot geodnssync sleep 1m && /etc/bind/geodns/trigger > /dev/null + | EOF } }