]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/named/manifests/geodns.pp
Apply Aurelien's nfs patch to the dsa-check-libs copy in puppet also
[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         package { 'geoip-database':
7                 ensure => installed,
8         }
9
10         #site::aptrepo { 'geoip':
11         #       url        => 'http://db.debian.org/debian-admin',
12         #       suite      => 'lenny-bind-geoip',
13         #       components => 'main',
14         #}
15         site::aptrepo { 'geoip': ensure => absent }
16
17         file { '/etc/bind/':
18                 ensure  => directory,
19                 group  => bind,
20                 mode   => '2755',
21                 require => Package['bind9'],
22                 notify  => Service['bind9'],
23         }
24         file { '/etc/bind/geodns':
25                 ensure => directory,
26                 mode   => '0755',
27         }
28         file { '/etc/bind/named.conf.options':
29                 content => template('named/named.conf.options.erb'),
30                 notify  => Service['bind9'],
31         }
32         file { '/etc/bind/named.conf.local':
33                 source => 'puppet:///modules/named/common/named.conf.local',
34                 notify  => Service['bind9'],
35         }
36         file { '/etc/bind/named.conf.acl':
37                 source => 'puppet:///modules/named/common/named.conf.acl',
38                 notify  => Service['bind9'],
39         }
40         file { '/etc/bind/geodns/zonefiles':
41                 ensure => directory,
42                 owner  => geodnssync,
43                 group  => geodnssync,
44                 mode   => '2755',
45         }
46         file { '/etc/bind/geodns/named.conf.geo':
47                 source => 'puppet:///modules/named/common/named.conf.geo',
48                 notify  => Service['bind9'],
49         }
50         file { '/etc/bind/geodns/trigger':
51                 mode   => '0555',
52                 source => 'puppet:///modules/named/common/trigger',
53         }
54         file { '/etc/ssh/userkeys/geodnssync':
55                 source => 'puppet:///modules/named/common/authorized_keys',
56                 group  => geodnssync,
57                 mode   => '0440',
58         }
59         file { '/etc/cron.d/dsa-boot-geodnssync':
60                 source => 'puppet:///modules/named/common/cron-geo'
61         }
62 }