debian_org::apt_restricted: fix fragment name
[mirror/dsa-puppet.git] / modules / debian_org / manifests / apt_restricted.pp
index 9b1126e..1bfe0e4 100644 (file)
@@ -1,7 +1,16 @@
 class debian_org::apt_restricted {
-       site::aptrepo { 'db.debian.org.restricted':
+       base::aptrepo { 'db.debian.org.restricted':
                url        => 'https://db.debian.org/debian-admin',
                suite      => "${::lsbdistcodename}-restricted",
                components => 'non-free',
        }
+
+       @@concat::fragment { "debian_org::apt_restricted::apache-acl::host::${::fqdn}":
+               tag        => 'debian_org::apt_restricted::apache-acl',
+               target     => '/etc/apache2/conf-available/puppet-restricted-acl.conf',
+               content    => @("EOF"),
+                       # ${::fqdn}
+                       Require ip ${ $base::public_addresses.join(' ') }
+                       | EOF
+       }
 }