]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/named/manifests/geodns.pp
reshuffle where template is served from
[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/bind/named.conf.options":
8             content => template("named/named.conf.options.erb"),
9             notify  => Exec["bind9 reload"];
10         "/etc/apt/sources.list.d/geoip.list":
11             content => template("debian-org/etc/apt/sources.list.d/geoip.list.erb"),
12             notify  => Exec["apt-get update"],
13             ;
14         "/etc/bind/named.conf.local":
15             source  => [ "puppet:///named/per-host/$fqdn/named.conf.local",
16                          "puppet:///named/common/named.conf.local" ],
17             require => Package["bind9"],
18             notify  => Exec["bind9 restart"],
19             owner   => root,
20             group   => root,
21             ;
22         "/etc/bind/named.conf.acl":
23             source  => [ "puppet:///named/per-host/$fqdn/named.conf.acl",
24                          "puppet:///named/common/named.conf.acl" ],
25             require => Package["bind9"],
26             notify  => Exec["bind9 restart"],
27             owner   => root,
28             group   => root,
29             ;
30         "/etc/bind/geodns":
31             ensure  => directory,
32             owner   => root,
33             group   => geodnssync,
34             mode    => 775,
35             ;
36         "/etc/bind/geodns/named.conf.geo":
37             source  => [ "puppet:///named/per-host/$fqdn/named.conf.geo",
38                          "puppet:///named/common/named.conf.geo" ],
39             require => Package["bind9"],
40             notify  => Exec["bind9 restart"],
41             owner   => root,
42             group   => root,
43             ;
44         "/etc/bind/geodns/recvconf":
45             source  => [ "puppet:///named/per-host/$fqdn/recvconf",
46                          "puppet:///named/common/recvconf" ],
47             owner   => root,
48             group   => root,
49             mode    => 555,
50             ;
51         "/etc/bind/geodns/recvconf.files":
52             source  => [ "puppet:///named/per-host/$fqdn/recvconf.files",
53                          "puppet:///named/common/recvconf.files" ],
54             owner   => root,
55             group   => root,
56             mode    => 444,
57             ;
58         "/etc/ssh/userkeys/geodnssync":
59             source  => [ "puppet:///named/per-host/$fqdn/authorized_keys",
60                          "puppet:///named/common/authorized_keys" ],
61             owner   => root,
62             group   => geodnssync,
63             mode    => 440,
64             ;
65     }
66 }
67
68 # vim:set et:
69 # vim:set sts=4 ts=4:
70 # vim:set shiftwidth=4: