# Hosts that run apache but where it should not be open to the internet by
# default
- casulana.debian.org
+ cdbuilder_local_mirror:
+ - casulana.debian.org
--- /dev/null
+class roles::cdbuilder_local_mirror {
+ include apache2
+
+ $apache_addr = "172.29.103.1"
+ $vhost_listen = "${apache_addr}:80"
+
+ apache2::site { '010-local-mirror.cdbuilder.debian.org"':
+ site => 'local-mirror.cdbuilder.debian.org',
+ content => template('roles/apache-local-mirror.cdbuilder.debian.org.erb'),
+ }
+
+ file { "/etc/apache2/ports.conf":
+ require => Package['apache2'],
+ content => @("EOF"),
+ # This file is maintained by puppet
+ Listen 127.0.0.1:80
+ Listen $vhost_listen
+ | EOF
+ notify => Service['apache2']
+ }
+}
if has_role('debconf_wafer') {
include roles::debconf_wafer
}
+
+ if has_role('cdbuilder_local_mirror') {
+ include roles::cdbuilder_local_mirror
+ }
}
--- /dev/null
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+<VirtualHost <%= @vhost_listen %>>
+ ServerAdmin debian-admin@debian.org
+ ServerName local-mirror.cdbuilder.debian.org
+ AddCharset UTF-8 .txt
+
+ ErrorLog /var/log/apache2/local-mirror.cdbuilder.debian.org-error.log
+ CustomLog /var/log/apache2/local-mirror.cdbuilder.debian.org-access.log privacy
+
+ Use ftp-archive /srv/mirrors/debian
+ Alias /debian/ /srv/mirrors/debian
+
+ Use ftp-archive /srv/mirrors/debian-security
+ Alias /debian-security /srv/mirrors/debian-security
+
+ <IfModule mod_userdir.c>
+ UserDir disabled
+ </IfModule>
+</VirtualHost>
+
+# vim:set syn=apache: