- onion::service { 'debug.mirrors.debian.org':
- port => 80,
- target_port => 80,
- target_address => $onion_v4_addr,
- }
- }
+ if $onion_service {
+ $onion_addr = empty($listen_addr) ? {
+ true => $base::public_address,
+ default => filter_ipv4($listen_addr)[0]
+ }
+ if ! $onion_addr {
+ fail("Do not have a useable address for the onionservice on ${::hostname}. Is \$listen_addr empty or does it not have an IPv4 address?.")
+ }
+
+ onion::service { 'debug.mirrors.debian.org':
+ port => 80,
+ target_port => 80,
+ target_address => $onion_addr,
+ }
+ }
+
+ Ferm::Rule::Simple <<| tag == 'ssh::server::from::ftp_master' |>>
+
+ mirror_health::service { 'debug':
+ this_host_service_name => $healthcheck_name,
+ url => 'http://debug.backend.mirrors.debian.org/debian-debug/dists/sid-debug/Release',
+ health_url => 'http://debug.backend.mirrors.debian.org/_health',
+ }