nm.d.o no longer needs access to projectb on bmdb1
[mirror/dsa-puppet.git] / modules / roles / manifests / cdbuilder_local_mirror.pp
1 class roles::cdbuilder_local_mirror (
2   Stdlib::IP::Address $listen_address
3 ) {
4   include apache2
5
6   $vhost_listen = "${listen_address}:80"
7
8   apache2::site { '010-local-mirror.cdbuilder.debian.org':
9     site    => 'local-mirror.cdbuilder.debian.org',
10     content => template('roles/apache-local-mirror.cdbuilder.debian.org.erb'),
11   }
12
13   file { '/etc/apache2/ports.conf':
14     require => Package['apache2'],
15     content => @("EOF"),
16         # This file is maintained by puppet
17         Listen 127.0.0.1:80
18         Listen ${vhost_listen}
19         | EOF
20     notify  => Service['apache2'],
21   }
22 }