onion::balance_service { 'metadata.ftp-master.debian.org': }
onion::balance_service { 'mozilla.debian.net': }
onion::balance_service { 'planet.debian.org': }
+
+
+ # non-static.d.o
+ onion::balance_service { 'security.debian.org': }
}
bind => $rsync_bind,
bind6 => $rsync_bind6,
}
+
+
+ $onion_v4_addr = $::hostname ? {
+ mirror-anu => '150.203.164.61',
+ mirror-isc => '149.20.20.19',
+ mirror-umn => '128.101.240.215',
+ villa => '212.211.132.32',
+ lobos => '212.211.132.250',
+ default => undef,
+ }
+ if has_role('security_mirror_onion') {
+ if ! $onion_v4_addr {
+ fail("Do not have an onion_v4_addr set for $::hostname.")
+ }
+
+ onion::service { 'security.debian.org':
+ port => 80,
+ target_port => 80,
+ target_address => $onion_v4_addr,
+ }
+ }
}
ServerAlias security-cdn1.debian.org
ServerAlias security-cdn2.debian.org
ServerAlias security-nagios.debian.org
+ <% if scope.function_onion_global_service_hostname(['security.debian.org']) -%>
+ ServerAlias <%= scope.function_onion_global_service_hostname(['security.debian.org']) %>
+ <% end %>
+
ExpiresActive On
ExpiresDefault "access plus 2 minutes"