]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/named/manifests/geodns.pp
whitespace nazi
[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                         content => template("named/named.conf.options.erb"),
29                         require => Package["bind9"],
30                         notify  => Exec["bind9 restart"],
31                         owner   => root,
32                         group   => root,
33                         ;
34
35                 "/etc/bind/geodns":
36                         ensure  => directory,
37                         owner   => root,
38                         group   => geodnssync,
39                         mode    => 775,
40                         ;
41                 "/etc/bind/geodns/named.conf.geo":
42                         source  => [ "puppet:///named/per-host/$fqdn/named.conf.geo",
43                                      "puppet:///named/common/named.conf.geo" ],
44                         require => Package["bind9"],
45                         notify  => Exec["bind9 restart"],
46                         owner   => root,
47                         group   => root,
48                         ;
49                 "/etc/bind/geodns/recvconf":
50                         source  => [ "puppet:///named/per-host/$fqdn/recvconf",
51                                      "puppet:///named/common/recvconf" ],
52                         owner   => root,
53                         group   => root,
54                         mode    => 555,
55                         ;
56                 "/etc/bind/geodns/recvconf.files":
57                         source  => [ "puppet:///named/per-host/$fqdn/recvconf.files",
58                                      "puppet:///named/common/recvconf.files" ],
59                         owner   => root,
60                         group   => root,
61                         mode    => 444,
62                         ;
63
64                 "/etc/ssh/userkeys/geodnssync":
65                         source  => [ "puppet:///named/per-host/$fqdn/authorized_keys",
66                                      "puppet:///named/common/authorized_keys" ],
67                         owner   => root,
68                         group   => geodnssync,
69                         mode    => 440,
70                         ;
71         }
72 }
73
74 # vim:set et:
75 # vim:set sts=4 ts=4:
76 # vim:set shiftwidth=4: