debian_mirror_onion:
- bilbao.debian.org
- mirror-isc.debian.org
+ historical_mirror:
+ - gretchaninov.debian.org
debug_mirror:
- klecker.debian.org
- mirror-isc.debian.org
--- /dev/null
+class roles::historical_mirror {
+ $vhost_listen = $::hostname ? {
+ default => '*:80',
+ }
+ $onion_v4_addr = $::hostname ? {
+ default => undef,
+ }
+ $archive_root = $::hostname ? {
+ default => '/srv/mirrors/debian-archive',
+ }
+
+ apache2::site { '010-archive.debian.org':
+ site => 'archive.debian.org',
+ content => template('roles/apache-archive.debian.org.erb'),
+ }
+
+ if has_role('historical_mirror_onion') {
+ if ! $onion_v4_addr {
+ fail("Do not have an onion_v4_addr set for $::hostname.")
+ }
+
+ onion::service { 'archive.debian.org':
+ port => 80,
+ target_port => 80,
+ target_address => $onion_v4_addr,
+ }
+ }
+}
if has_role('security_mirror') {
include roles::security_mirror
}
+ if has_role('historical_mirror') {
+ include roles::historical_mirror
+ }
if has_role('debian_mirror') {
include roles::debian_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 archive.debian.org
+ <% if scope.function_onion_global_service_hostname(['archive.debian.org']) -%>
+ ServerAlias <%= scope.function_onion_global_service_hostname(['archive.debian.org']) %>
+ <% end %>
+
+ RedirectMatch "^/$" /debian-archive/
+ Alias /debian-archive/ <%= archive_root %>/
+
+ ErrorLog /var/log/apache2/archive.debian.org-error.log
+ CustomLog /var/log/apache2/archive.debian.org-access.log privacy
+
+ Use ftp-archive <%= archive_root %>
+
+ <IfModule mod_userdir.c>
+ UserDir disabled
+ </IfModule>
+</VirtualHost>
+
+# vim:set syn=apache: