Generate the apache ACL for draghi's "restricted" repo (RT#7962)
[mirror/dsa-puppet.git] / modules / debian_org / manifests / apt_restricted.pp
index b76d5b0..ed5c0a0 100644 (file)
@@ -4,4 +4,13 @@ class debian_org::apt_restricted {
                suite      => "${::lsbdistcodename}-restricted",
                components => 'non-free',
        }
+
+       @@concat::fragment { "debian_org::apt_restricted::apache-acl::host::${name}":
+               tag        => 'debian_org::apt_restricted::apache-acl',
+               target     => '/etc/apache2/conf-available/puppet-restricted-acl.conf',
+               content    => @("EOF"),
+                       # ${::fqdn}
+                       Require ip ${::base::public_addresses}
+                       | EOF
+       }
 }