]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/named/manifests/geodns.pp
add zandonai.debian.org
[dsa-puppet.git] / modules / named / manifests / geodns.pp
1 class named::geodns inherits named {
2         activate_munin_check {
3                 "bind_views": script => bind;
4         }
5
6         file {
7                 "/etc/apt/sources.list.d/geoip.list":
8                         content => template("debian-org/etc/apt/sources.list.d/geoip.list.erb"),
9                         notify  => Exec["apt-get update"],
10                         ;
11                 "/etc/bind/named.conf.local":
12                         source  => [ "puppet:///named/per-host/$fqdn/named.conf.local",
13                                      "puppet:///named/common/named.conf.local" ],
14                         require => Package["bind9"],
15                         notify  => Exec["bind9 restart"],
16                         owner   => root,
17                         group   => root,
18                         ;
19                 "/etc/bind/named.conf.acl":
20                         source  => [ "puppet:///named/per-host/$fqdn/named.conf.acl",
21                                      "puppet:///named/common/named.conf.acl" ],
22                         require => Package["bind9"],
23                         notify  => Exec["bind9 restart"],
24                         owner   => root,
25                         group   => root,
26                         ;
27                 "/etc/bind/named.conf.options":
28                         source  => [ "puppet:///named/per-host/$fqdn/named.conf.options",
29                                      "puppet:///named/common/named.conf.options" ],
30                         require => Package["bind9"],
31                         notify  => Exec["bind9 restart"],
32                         owner   => root,
33                         group   => root,
34                         ;
35
36                 "/etc/bind/geodns":
37                         ensure  => directory,
38                         owner   => root,
39                         group   => geodnssync,
40                         mode    => 775,
41                         ;
42                 "/etc/bind/geodns/named.conf.geo":
43                         source  => [ "puppet:///named/per-host/$fqdn/named.conf.geo",
44                                      "puppet:///named/common/named.conf.geo" ],
45                         require => Package["bind9"],
46                         notify  => Exec["bind9 restart"],
47                         owner   => root,
48                         group   => root,
49                         ;
50                 "/etc/bind/geodns/recvconf":
51                         source  => [ "puppet:///named/per-host/$fqdn/recvconf",
52                                      "puppet:///named/common/recvconf" ],
53                         owner   => root,
54                         group   => root,
55                         mode    => 555,
56                         ;
57                 "/etc/bind/geodns/recvconf.files":
58                         source  => [ "puppet:///named/per-host/$fqdn/recvconf.files",
59                                      "puppet:///named/common/recvconf.files" ],
60                         owner   => root,
61                         group   => root,
62                         mode    => 444,
63                         ;
64
65                 "/usr/share/GeoIP/GeoIPv6.dat":
66                         source  => [ "puppet:///named/per-host/$fqdn/GeoIPv6.dat",
67                                      "puppet:///named/common/GeoIPv6.dat" ],
68                         owner   => root,
69                         group   => root,
70                         mode    => 444,
71                         ;
72
73                 "/etc/ssh/userkeys/geodnssync":
74                         source  => [ "puppet:///named/per-host/$fqdn/authorized_keys",
75                                      "puppet:///named/common/authorized_keys" ],
76                         owner   => root,
77                         group   => geodnssync,
78                         mode    => 440,
79                         ;
80                 "/var/log/bind9":
81                         ensure  => directory,
82                         owner   => bind,
83                         group   => bind,
84                         mode    => 775,
85                         ;
86         }
87 }
88
89 # vim: set fdm=marker ts=8 sw=8 et: