]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/named/manifests/geodns.pp
move over dns_primary/seconday
[dsa-puppet.git] / modules / named / manifests / geodns.pp
1 class named::geodns inherits named {
2         munin::check { 'bind_views':
3                 script => bind
4         }
5
6         #site::aptrepo { 'geoip':
7         #       url        => 'http://db.debian.org/debian-admin',
8         #       suite      => 'lenny-bind-geoip',
9         #       components => 'main',
10         #}
11         site::aptrepo { 'geoip': ensure => absent }
12
13         file { '/etc/bind/':
14                 ensure  => directory,
15                 group  => bind,
16                 mode   => '2755',
17                 require => Package['bind9'],
18                 notify  => Service['bind9'],
19         }
20         file { '/etc/bind/geodns':
21                 ensure => directory,
22                 mode   => '0755',
23         }
24         file { '/etc/bind/named.conf.options':
25                 content => template('named/named.conf.options.erb'),
26         }
27         file { '/etc/bind/named.conf.local':
28                 source => 'puppet:///modules/named/common/named.conf.local',
29         }
30         file { '/etc/bind/named.conf.acl':
31                 source => 'puppet:///modules/named/common/named.conf.acl',
32         }
33         file { '/etc/bind/geodns/zonefiles':
34                 ensure => directory,
35                 owner  => geodnssync,
36                 group  => geodnssync,
37                 mode   => '2755',
38         }
39         file { '/etc/bind/geodns/named.conf.geo':
40                 source => 'puppet:///modules/named/common/named.conf.geo',
41         }
42         file { '/etc/bind/geodns/trigger':
43                 mode   => '0555',
44                 source => 'puppet:///modules/named/common/trigger',
45         }
46         file { '/etc/ssh/userkeys/geodnssync':
47                 source => 'puppet:///modules/named/common/authorized_keys',
48                 group  => geodnssync,
49                 mode   => '0440',
50         }
51         file { '/etc/cron.d/dsa-boot-geodnssync':
52                 source => 'puppet:///modules/named/common/cron-geo'
53         }
54 }