Add health checking support for mirrors
authorTollef Fog Heen <tfheen@err.no>
Sat, 30 Sep 2017 19:00:19 +0000 (21:00 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 30 Sep 2017 19:18:51 +0000 (21:18 +0200)
commit1552612184671215e066d620536e0594a2bb4ea5
tree97eb04c20f2679afff431aa51f6b228920620b9e
parent55e8d03c4d97a031237a43a1aec3830b0dab5fc7
Add health checking support for mirrors

Add a small daemon which checks if the local Last-Modified of a given
file is the same as on other hosts.  If it is, write a file saying
that we can receive traffic, else remove it.

Also map that file to /_health in the Apache config so bgpd/fastly can
check it.
modules/roles/files/mirror_health/mirror-health [new file with mode: 0755]
modules/roles/manifests/debian_mirror.pp
modules/roles/manifests/mirror_health.pp [new file with mode: 0644]
modules/roles/templates/apache-ftp.debian.org.erb
modules/roles/templates/mirror-health.service.erb [new file with mode: 0644]