1 class named::geodns inherits named {
2 munin::check { 'bind_views':
6 package { 'geoip-database':
10 #site::aptrepo { 'geoip':
11 # url => 'http://db.debian.org/debian-admin',
12 # suite => 'lenny-bind-geoip',
13 # components => 'main',
15 site::aptrepo { 'geoip': ensure => absent }
21 require => Package['bind9'],
22 notify => Service['bind9'],
24 file { '/etc/bind/geodns':
28 file { '/etc/bind/named.conf.options':
29 content => template('named/named.conf.options.erb'),
30 notify => Service['bind9'],
32 file { '/etc/bind/named.conf.local':
33 source => 'puppet:///modules/named/common/named.conf.local',
34 notify => Service['bind9'],
36 if (versioncmp($::lsbmajdistrelease, '9') >= 0) {
37 file { '/etc/bind/named.conf.acl':
38 source => 'puppet:///modules/named/common/named.conf.acl',
39 notify => Service['bind9'],
42 file { '/etc/bind/named.conf.acl':
43 source => 'puppet:///modules/named/common/named.conf.acl.bind99',
44 notify => Service['bind9'],
47 file { '/etc/bind/geodns/zonefiles':
53 file { '/etc/bind/geodns/named.conf.geo':
54 source => 'puppet:///modules/named/common/named.conf.geo',
55 notify => Service['bind9'],
57 file { '/etc/bind/geodns/trigger':
59 source => 'puppet:///modules/named/common/trigger',
61 file { '/etc/ssh/userkeys/geodnssync':
62 source => 'puppet:///modules/named/common/authorized_keys',
66 file { '/etc/cron.d/dsa-boot-geodnssync': ensure => absent; }
67 concat::fragment { 'dsa-puppet-stuff--geodns-boot':
68 target => '/etc/cron.d/dsa-puppet-stuff',
70 @reboot geodnssync sleep 1m && /etc/bind/geodns/trigger > /dev/null