Make the apt_restricted acl an apache macro
authorJulien Cristau <jcristau@debian.org>
Tue, 8 Oct 2019 15:09:22 +0000 (17:09 +0200)
committerJulien Cristau <jcristau@debian.org>
Tue, 8 Oct 2019 15:09:22 +0000 (17:09 +0200)
modules/roles/manifests/dbmaster.pp

index f207b21..6db028f 100644 (file)
@@ -67,4 +67,18 @@ class roles::dbmaster {
     warn           => '# This file is maintained with puppet',
   }
   Concat::Fragment <<| tag == 'debian_org::apt_restricted::apache-acl' |>>
+  concat::fragment { 'debian_org::apt_restricted::apache-acl-head':
+    target => '/etc/apache2/conf-available/puppet-restricted-acl.conf',
+    order => '01',
+    content => @(EOF)
+      <Macro dsa-apt-restricted-acl>
+      | EOF
+  }
+  concat::fragment { 'debian_org::apt_restricted::apache-acl-tail':
+    target => '/etc/apache2/conf-available/puppet-restricted-acl.conf',
+    order => '99',
+    content => @(EOF)
+      </Macro>
+      | EOF
+  }
 }