Add health check on debian-debug archive backends
authorJulien Cristau <jcristau@debian.org>
Fri, 12 Oct 2018 12:47:48 +0000 (14:47 +0200)
committerJulien Cristau <jcristau@debian.org>
Fri, 12 Oct 2018 12:49:51 +0000 (14:49 +0200)
modules/roles/manifests/debug_mirror.pp
modules/roles/templates/apache-debug.mirrors.debian.org.erb

index e148e9d..b43d66a 100644 (file)
@@ -34,4 +34,11 @@ class roles::debug_mirror {
                        target_address => $onion_v4_addr,
                }
        }
+
+       roles::mirror_health { 'debug':
+               check_hosts     => hiera('roles.debug_mirror'),
+               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',
+       }
 }
index 40dcc11..1ac6c65 100644 (file)
 
        RedirectMatch "^/$" /debian-debug/
        Alias /debian-debug <%= @archive_root %>
+       Alias /_health /run/dsa-mirror-health-debug/health
+       <Directory /run/dsa-mirror-health-debug/>
+               Require all granted
+       </Directory>
 
        ErrorLog /var/log/apache2/debug.mirrors.debian.org-error.log
        CustomLog /var/log/apache2/debug.mirrors.debian.org-access.log privacy