1 class named::geodns inherits named {
2 munin::check { 'bind_views':
6 package { 'geoip-database':
14 require => Package['bind9'],
15 notify => Service['bind9'],
17 file { '/etc/bind/geodns':
21 file { '/etc/bind/named.conf.local':
22 source => 'puppet:///modules/named/common/named.conf.local',
23 notify => Service['bind9'],
25 if (versioncmp($::lsbmajdistrelease, '9') >= 0) {
26 file { '/etc/bind/named.conf.acl':
27 source => 'puppet:///modules/named/common/named.conf.acl',
28 notify => Service['bind9'],
31 file { '/etc/bind/named.conf.acl':
32 source => 'puppet:///modules/named/common/named.conf.acl.bind99',
33 notify => Service['bind9'],
36 file { '/etc/bind/geodns/zonefiles':
42 file { '/etc/bind/geodns/named.conf.geo':
43 source => 'puppet:///modules/named/common/named.conf.geo',
44 notify => Service['bind9'],
46 file { '/etc/bind/geodns/trigger':
48 source => 'puppet:///modules/named/common/trigger',
50 file { '/etc/cron.d/dsa-boot-geodnssync': ensure => absent; }
51 concat::fragment { 'dsa-puppet-stuff--geodns-boot':
52 target => '/etc/cron.d/dsa-puppet-stuff',
54 @reboot geodnssync sleep 1m && /etc/bind/geodns/trigger > /dev/null
58 ferm::rule { '01-dsa-bind':
60 description => 'Allow nameserver access',
61 rule => '&TCP_UDP_SERVICE(53)'