Move debug to store/collect health checker
[mirror/dsa-puppet.git] / modules / roles / manifests / debug_mirror.pp
index 0b361d8..38983c0 100644 (file)
@@ -41,12 +41,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 => hiera('roles.debug_mirror')[$::fqdn]['service-hostname'],
+    url                    => 'http://debug.backend.mirrors.debian.org/debian-debug/dists/sid-debug/Release',
+    health_url             => 'http://debug.backend.mirrors.debian.org/_health',
   }
 }