projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add health checking support for mirrors
[mirror/dsa-puppet.git]
/
modules
/
roles
/
manifests
/
debian_mirror.pp
diff --git
a/modules/roles/manifests/debian_mirror.pp
b/modules/roles/manifests/debian_mirror.pp
index
1eae310
..
cae863f
100644
(file)
--- a/
modules/roles/manifests/debian_mirror.pp
+++ b/
modules/roles/manifests/debian_mirror.pp
@@
-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',
+ }
}