Merge branch 'master' of git+ssh://zobel@puppet.debian.org/srv/puppet.debian.org...
[mirror/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                 "/etc/ssh/userkeys/geodnssync":
66                         source  => [ "puppet:///named/per-host/$fqdn/authorized_keys",
67                                      "puppet:///named/common/authorized_keys" ],
68                         owner   => root,
69                         group   => geodnssync,
70                         mode    => 440,
71                         ;
72                 "/var/log/bind9":
73                         ensure  => directory,
74                         owner   => bind,
75                         group   => bind,
76                         mode    => 775,
77                         ;
78         }
79 }
80
81 # vim: set fdm=marker ts=8 sw=8 et: