]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/dacs/manifests/init.pp
fix syntax
[dsa-puppet.git] / modules / dacs / manifests / init.pp
index a9e703de2c4cbb684556f7c90205e72647e9f670..aaad0c4cf26f34b459041730b4988660e0a965f9 100644 (file)
@@ -45,6 +45,14 @@ class dacs {
              purge   => true
              ;
 
+        "/etc/dacs/federations/debian.org/DEBIAN/groups/DACS":
+             ensure  => directory,
+             owner   => root,
+             group   => www-data,
+             mode    => 750,
+             purge   => true
+             ;
+
         "/etc/dacs/federations/site.conf":
              source  => [ "puppet:///modules/dacs/per-host/$fqdn/site.conf",
                           "puppet:///modules/dacs/common/site.conf" ],
@@ -69,12 +77,20 @@ class dacs {
              group   => www-data
              ;
 
+        "/etc/dacs/federations/debian.org/DEBIAN/groups/DACS/jurisdictions.grp":
+             source  => [ "puppet:///modules/dacs/per-host/$fqdn/jurisdictions.grp",
+                          "puppet:///modules/dacs/common/jurisdictions.grp" ],
+             mode    => 640,
+             owner   => root,
+             group   => www-data
+             ;
+
         "/etc/dacs/federations/debian.org/DEBIAN/acls/acl-noauth.0":
              source  => [ "puppet:///modules/dacs/per-host/$fqdn/acl-noauth.0",
                           "puppet:///modules/dacs/common/acl-noauth.0" ],
              mode    => 640,
              owner   => root,
-             group   => www-data
+             group   => www-data,
              notify  => Exec["dacsacl"]
              ;
 
@@ -83,14 +99,29 @@ class dacs {
                           "puppet:///modules/dacs/common/acl-private.0" ],
              mode    => 640,
              owner   => root,
-             group   => www-data
+             group   => www-data,
              notify  => Exec["dacsacl"]
              ;
+
+        "/etc/dacs/federations/debian.org/federation_keyfile":
+             source  => "puppet:///modules/dacs/private/debian.org_federation_keyfile",
+             mode    => 640,
+             owner   => root,
+             group   => www-data
+             ;
+
+        "/etc/dacs/federations/debian.org/DEBIAN/jurisdiction_keyfile":
+             source  => "puppet:///modules/dacs/private/DEBIAN_jurisdiction_keyfile",
+             mode    => 640,
+             owner   => root,
+             group   => www-data
+             ;
+
     }
 
     exec {
         "dacsacl":
-            command     => "dacsacl -uj DEBIAN",
+            command     => "dacsacl -sc /etc/dacs/federations/site.conf -c /etc/dacs/federations/debian.org/DEBIAN/dacs.conf -uj DEBIAN && chown root:www-data /etc/dacs/federations/debian.org/DEBIAN/acls/INDEX",
             refreshonly => true,
     }