Generate the apache ACL for draghi's "restricted" repo (RT#7962)
[mirror/dsa-puppet.git] / modules / debian_org / manifests / apt_restricted.pp
1 class debian_org::apt_restricted {
2         base::aptrepo { 'db.debian.org.restricted':
3                 url        => 'https://db.debian.org/debian-admin',
4                 suite      => "${::lsbdistcodename}-restricted",
5                 components => 'non-free',
6         }
7
8         @@concat::fragment { "debian_org::apt_restricted::apache-acl::host::${name}":
9                 tag        => 'debian_org::apt_restricted::apache-acl',
10                 target     => '/etc/apache2/conf-available/puppet-restricted-acl.conf',
11                 content    => @("EOF"),
12                         # ${::fqdn}
13                         Require ip ${::base::public_addresses}
14                         | EOF
15         }
16 }