]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/named/manifests/geodns.pp
make site::aptrepo a proper type
[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
12         file { '/etc/bind/':
13                 ensure  => directory,
14                 group  => bind,
15                 mode   => '2755',
16                 require => Package['bind9'],
17                 notify  => Service['bind9'],
18         }
19         file { '/etc/bind/geodns':
20                 ensure => directory,
21                 mode   => '0755',
22         }
23         file { '/etc/bind/named.conf.options':
24                 content => template('named/named.conf.options.erb'),
25         }
26         file { '/etc/bind/named.conf.local':
27                 source => 'puppet:///modules/named/common/named.conf.local',
28         }
29         file { '/etc/bind/named.conf.acl':
30                 source => 'puppet:///modules/named/common/named.conf.acl',
31         }
32         file { '/etc/bind/geodns/zonefiles':
33                 ensure => directory,
34                 owner  => geodnssync,
35                 group  => geodnssync,
36                 mode   => '2755',
37         }
38         file { '/etc/bind/geodns/named.conf.geo':
39                 source => 'puppet:///modules/named/common/named.conf.geo',
40         }
41         file { '/etc/bind/geodns/trigger':
42                 mode   => '0555',
43                 source => 'puppet:///modules/named/common/trigger',
44         }
45         file { '/etc/ssh/userkeys/geodnssync':
46                 source => 'puppet:///modules/named/common/authorized_keys',
47                 group  => geodnssync,
48                 mode   => '0440',
49         }
50         file { '/etc/cron.d/dsa-boot-geodnssync':
51                 source => 'puppet:///modules/named/common/cron-geo'
52         }
53 }