debug_mirror:
- klecker.debian.org
- mirror-isc.debian.org
+ debug_mirror_onion:
+ - klecker.debian.org
+ - mirror-isc.debian.org
ports_mirror:
- klecker.debian.org
- mirror-isc.debian.org
+ ports_mirror_onion:
+ - klecker.debian.org
+ - mirror-isc.debian.org
planet_search:
- philp.debian.org
i18n.d.o:
mirror-isc => '149.20.20.22:80 [2001:4f8:8:36::1deb:22]:80',
default => '*:80',
}
+ $onion_v4_addr = $::hostname ? {
+ klecker => '130.89.148.14',
+ mirror-isc => '149.20.20.22',
+ default => undef,
+ }
apache2::site { '010-debug.mirrors.debian.org':
site => 'debug.mirrors.debian.org',
content => template('roles/apache-debug.mirrors.debian.org.erb'),
}
+
+ if has_role('static_mirror_onion') {
+ if ! $onion_v4_addr {
+ fail("Do not have an onion_v4_addr set for $::hostname.")
+ }
+
+ onion::service { 'debug.mirrors.debian.org':
+ port => 80,
+ target_port => 80,
+ target_address => $onion_v4_addr,
+ }
+ }
}
# non-static.d.o
onion::balance_service { 'security.debian.org': }
+ onion::balance_service { 'debug.mirrors.debian.org': }
+ onion::balance_service { 'ftp.ports.debian.org': }
}
mirror-isc => '149.20.20.22:80 [2001:4f8:8:36::1deb:22]:80',
default => '*:80',
}
+ $onion_v4_addr = $::hostname ? {
+ klecker => '130.89.148.14',
+ mirror-isc => '149.20.20.22',
+ default => undef,
+ }
apache2::site { '010-ftp.ports.debian.org':
site => 'ftp.ports.debian.org',
content => template('roles/apache-ftp.ports.debian.org.erb'),
}
+
+ if has_role('static_mirror_onion') {
+ if ! $onion_v4_addr {
+ fail("Do not have an onion_v4_addr set for $::hostname.")
+ }
+
+ onion::service { 'ftp.ports.debian.org':
+ port => 80,
+ target_port => 80,
+ target_address => $onion_v4_addr,
+ }
+ }
}
<VirtualHost <%= vhost_listen %> >
ServerAdmin debian-admin@debian.org
ServerName debug.mirrors.debian.org
+ <% if scope.function_onion_global_service_hostname(['debug.mirrors.debian.org']) -%>
+ ServerAlias <%= scope.function_onion_global_service_hostname(['debug.mirrors.debian.org']) %>
+ <% end %>
RedirectMatch "^/$" /debian-debug/
Alias /debian-debug /srv/mirrors/debian-debug
<VirtualHost <%= vhost_listen %> >
ServerAdmin debian-admin@debian.org
ServerName ftp.ports.debian.org
-
+ <% if scope.function_onion_global_service_hostname(['ftp.ports.debian.org']) -%>
+ ServerAlias <%= scope.function_onion_global_service_hostname(['ftp.ports.debian.org']) %>
+ <% end %>
ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log
LogLevel warn