class debian_org::apt_restricted {
- site::aptrepo { 'db.debian.org.restricted':
- url => 'http://db.debian.org/debian-admin',
- suite => '${::lsbdistcodename}-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
+ }
}