Add health checking support for mirrors
[mirror/dsa-puppet.git] / modules / roles / manifests / debian_mirror.pp
index 1eae310..cae863f 100644 (file)
@@ -39,4 +39,10 @@ class roles::debian_mirror {
                        target_address => $onion_v4_addr,
                }
        }
+
+        roles::mirror_health { 'ftp':
+               check_hosts   => getfromhash($site::roles, 'debian_mirror'),
+               check_service => 'ftp',
+               url           => 'http://debian.backend.mirrors.debian.org/debian/dists/sid/Release',
+        }
 }