some whitespace cleanup and move template to base class
[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/geodns":
28             ensure  => directory,
29             owner   => root,
30             group   => geodnssync,
31             mode    => 775,
32             ;
33         "/etc/bind/geodns/named.conf.geo":
34             source  => [ "puppet:///named/per-host/$fqdn/named.conf.geo",
35                          "puppet:///named/common/named.conf.geo" ],
36             require => Package["bind9"],
37             notify  => Exec["bind9 restart"],
38             owner   => root,
39             group   => root,
40             ;
41         "/etc/bind/geodns/recvconf":
42             source  => [ "puppet:///named/per-host/$fqdn/recvconf",
43                          "puppet:///named/common/recvconf" ],
44             owner   => root,
45             group   => root,
46             mode    => 555,
47             ;
48         "/etc/bind/geodns/recvconf.files":
49             source  => [ "puppet:///named/per-host/$fqdn/recvconf.files",
50                          "puppet:///named/common/recvconf.files" ],
51             owner   => root,
52             group   => root,
53             mode    => 444,
54             ;
55         "/etc/ssh/userkeys/geodnssync":
56             source  => [ "puppet:///named/per-host/$fqdn/authorized_keys",
57                          "puppet:///named/common/authorized_keys" ],
58             owner   => root,
59             group   => geodnssync,
60             mode    => 440,
61             ;
62     }
63 }
64
65 # vim:set et:
66 # vim:set sts=4 ts=4:
67 # vim:set shiftwidth=4: