more amazon networks to blacklist
[mirror/dsa-puppet.git] / modules / roles / manifests / cdbuilder_local_mirror.pp
1 class roles::cdbuilder_local_mirror {
2         include apache2
3
4         $apache_addr = "172.29.103.1"
5         $vhost_listen = "${apache_addr}:80"
6
7         apache2::site { '010-local-mirror.cdbuilder.debian.org':
8                 site   => 'local-mirror.cdbuilder.debian.org',
9                 content => template('roles/apache-local-mirror.cdbuilder.debian.org.erb'),
10         }
11
12         file { "/etc/apache2/ports.conf":
13                 require => Package['apache2'],
14                 content  => @("EOF"),
15                                 # This file is maintained by puppet
16                                 Listen 127.0.0.1:80
17                                 Listen $vhost_listen
18                                 | EOF
19                 notify  => Service['apache2']
20         }
21 }