- mirror-accumu.debian.org
- mirror-skroutz.debian.org
- lobos.debian.org
+ service-hostname: lobos.security.backend.mirrors.debian.org
+ fastly-backend: true
- santoro.debian.org
- setoguchi.debian.org
- sechter.debian.org
- villa.debian.org
+ service-hostname: villa.security.backend.mirrors.debian.org
+ fastly-backend: true
- wieck.debian.org
+ service-hostname: wieck.security.backend.mirrors.debian.org
+ fastly-backend: true
security_mirror_onion:
- mirror-isc.debian.org
- mirror-umn.debian.org
content => template('roles/security_mirror/security.debian.org.erb')
}
+ $mirrors = hiera_hash('roles::security_mirror',[])
+ $fastly_mirrors = $mirrors.filter |$h| { $h[1]['fastly-backend'] }
+ $hosts_to_check = $fastly_mirrors.map | $h| { $h1['service-hostname'] }
+
roles::mirror_health { 'security':
- check_hosts => hiera('roles.security_mirror'),
+ check_hosts => $hosts_to_check,
check_service => 'security',
url => 'http://security.backend.mirrors.debian.org/debian/dists/sid/Release',
health_url => 'http://security.backend.mirrors.debian.org/_health',