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