mirror_debug:
- klecker.debian.org
- mirror-isc.debian.org
+ mirror_ports:
+ - klecker.debian.org
+ - mirror-isc.debian.org
planet_search:
- philp.debian.org
i18n.d.o:
if has_role('mirror_debug') {
include roles::debug_mirror
}
+ if has_role('mirror_ports') {
+ include roles::ports_mirror
+ }
if has_role('ftp.d.o') {
include roles::ftp
--- /dev/null
+class roles::ports_mirror {
+ $vhost_listen = $::hostname ? {
+ klecker => '130.89.148.14:80 [2001:610:1908:b000::148:14]:80',
+ mirror-isc => '149.20.20.22:80 [2001:4f8:8:36::1deb:22]:80',
+ default => '*:80',
+ }
+
+ apache2::site { '010-ports.mirrors.debian.org':
+ site => 'ports.mirrors.debian.org',
+ content => template('roles/apache-ftp.ports.debian.org.erb'),
+ }
+}
##
<VirtualHost <%= vhost_listen %> >
- ServerAdmin webmaster@debian.org
+ ServerAdmin debian-admin@debian.org
ServerName debug.mirrors.debian.org
RedirectMatch "^/$" /debian-debug/
--- /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 ftp.ports.debian.org
+
+ RedirectMatch "^/$" /debian-ports/
+ Alias /debian-ports /srv/mirrors/debian-ports
+
+ ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log
+ LogLevel warn
+ CustomLog /var/log/apache2/ftp.ports.debian.org-access.log privacy
+
+ <Directory /srv/mirrors/debian-ports>
+ Require all granted
+ IndexOptions NameWidth=* +SuppressDescription
+ Options +Indexes
+ Options +FollowSymLinks
+ </Directory>
+</VirtualHost>
+
+