]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/named/manifests/geodns.pp
76cfe3c6e7c4b3df68e002def746e8a1fa225cbc
[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:///modules/named/per-host/$fqdn/named.conf.local",
16                          "puppet:///modules/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:///modules/named/per-host/$fqdn/named.conf.acl",
24                          "puppet:///modules/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   => root,
34             mode    => 755,
35             ;
36         "/etc/bind/geodns/zonefiles":
37             ensure  => directory,
38             owner   => geodnssync,
39             group   => geodnssync,
40             mode    => 755,
41             ;
42         "/etc/bind/geodns/named.conf.geo":
43             source  => [ "puppet:///modules/named/per-host/$fqdn/named.conf.geo",
44                          "puppet:///modules/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/trigger":
51             source  => [ "puppet:///modules/named/per-host/$fqdn/trigger",
52                          "puppet:///modules/named/common/trigger" ],
53             owner   => root,
54             group   => root,
55             mode    => 555,
56             ;
57         "/etc/ssh/userkeys/geodnssync":
58             source  => [ "puppet:///modules/named/per-host/$fqdn/authorized_keys",
59                          "puppet:///modules/named/common/authorized_keys" ],
60             owner   => root,
61             group   => geodnssync,
62             mode    => 440,
63             ;
64         "/etc/cron.d/dsa-boot-geodnssync":
65             source  => [ "puppet:///modules/named/per-host/$fqdn/cron-geo",
66                          "puppet:///modules/named/common/cron-geo" ],
67             owner   => root,
68             group   => root,
69             ;
70     }
71 }
72
73 # vim:set et:
74 # vim:set sts=4 ts=4:
75 # vim:set shiftwidth=4: