Add recvconf, recvconf.files, and auth keys to manifest
authorPeter Palfrader <peter@palfrader.org>
Wed, 27 May 2009 19:24:00 +0000 (21:24 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 27 May 2009 19:24:00 +0000 (21:24 +0200)
modules/geodns/manifests/init.pp

index 542f558..a0397d0 100644 (file)
@@ -35,12 +35,41 @@ class geodns {
                         ;
                 "/etc/bind/named.conf.options":
                         source  => [ "puppet:///geodns/per-host/$fqdn/named.conf.options",
-                                      "puppet:///geodns/common/named.conf.options" ],
+                                     "puppet:///geodns/common/named.conf.options" ],
                         require => Package["bind9"],
                         notify  => Exec["bind9 restart"],
                         owner   => root,
                         group   => root,
                         ;
+
+                "/etc/bind/geodns":
+                        ensure  => directory,
+                        owner   => root,
+                        group   => geodnssync,
+                        mode    => 775,
+                        ;
+                "/etc/bind/geodns/recvconf":
+                        source  => [ "puppet:///geodns/per-host/$fqdn/recvconf",
+                                     "puppet:///geodns/common/recvconf" ],
+                        owner   => root,
+                        group   => root,
+                        mode    => 555,
+                        ;
+                "/etc/bind/geodns/recvconf.files":
+                        source  => [ "puppet:///geodns/per-host/$fqdn/recvconf.files",
+                                     "puppet:///geodns/common/recvconf.files" ],
+                        owner   => root,
+                        group   => root,
+                        mode    => 444,
+                        ;
+
+                "/etc/ssh/userkeys/geodnssync":
+                        source  => [ "puppet:///geodns/per-host/$fqdn/authorized_keys",
+                                     "puppet:///geodns/common/authorized_keys" ],
+                        owner   => root,
+                        group   => geodnssync,
+                        mode    => 440,
+                        ;
         }
 
         exec {