X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fdebug_mirror.pp;h=8f1407d3c4f3f37cf4e78868eaf33e3700548013;hb=2bfb2198b68a8c65bcfff37f645e959145131949;hp=0b361d8c8f9aafff2437346d78f8187351ef602d;hpb=dd84bd005d2b8ac910d4d239054eda5e29c633dc;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/debug_mirror.pp b/modules/roles/manifests/debug_mirror.pp index 0b361d8c8..8f1407d3c 100644 --- a/modules/roles/manifests/debug_mirror.pp +++ b/modules/roles/manifests/debug_mirror.pp @@ -2,9 +2,11 @@ # # @param listen_addr IP addresses to have apache listen on # @param onion_service provide the onion service from this host +# @param healthcheck_name name to access this node in the health checker class roles::debug_mirror( Array[Stdlib::IP::Address] $listen_addr = [], Boolean $onion_service = false, + Optional[String] $healthcheck_name = undef, ) { include roles::archvsync_base include apache2 @@ -41,12 +43,9 @@ class roles::debug_mirror( Ferm::Rule::Simple <<| tag == 'ssh::server::from::ftp_master' |>> - $hosts_to_check = hiera('roles.debug_mirror', {}) - .map |$h| { $h[1]['service-hostname'] } - roles::mirror_health { 'debug': - check_hosts => $hosts_to_check, - check_service => 'debug', - url => 'http://debug.backend.mirrors.debian.org/debian-debug/dists/sid-debug/Release', - health_url => 'http://debug.backend.mirrors.debian.org/_health', + 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', } }