projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move debug healthcheck info to hiera
[mirror/dsa-puppet.git]
/
modules
/
roles
/
manifests
/
debug_mirror.pp
diff --git
a/modules/roles/manifests/debug_mirror.pp
b/modules/roles/manifests/debug_mirror.pp
index
38983c0
..
4975c41
100644
(file)
--- a/
modules/roles/manifests/debug_mirror.pp
+++ b/
modules/roles/manifests/debug_mirror.pp
@@
-2,9
+2,11
@@
#
# @param listen_addr IP addresses to have apache listen on
# @param onion_service provide the onion service from this host
#
# @param listen_addr IP addresses to have apache listen on
# @param onion_service provide the onion service from this host
+# @param healthcheck_name name to access this node in the health checker
class roles::debug_mirror(
Array[Stdlib::IP::Address] $listen_addr = [],
Boolean $onion_service = false,
class roles::debug_mirror(
Array[Stdlib::IP::Address] $listen_addr = [],
Boolean $onion_service = false,
+ Optional[String] $healthcheck_name = undef,
) {
include roles::archvsync_base
include apache2
) {
include roles::archvsync_base
include apache2
@@
-41,8
+43,13
@@
class roles::debug_mirror(
Ferm::Rule::Simple <<| tag == 'ssh::server::from::ftp_master' |>>
Ferm::Rule::Simple <<| tag == 'ssh::server::from::ftp_master' |>>
+ $healthcheck_ensure = $healthcheck_name == undef ? {
+ true => 'absent',
+ default => 'present',
+ }
mirror_health::service { 'debug':
mirror_health::service { 'debug':
- this_host_service_name => hiera('roles.debug_mirror')[$::fqdn]['service-hostname'],
+ ensure => healthcheck_ensure,
+ this_host_service_name => $healthcheck_name,
url => 'http://debug.backend.mirrors.debian.org/debian-debug/dists/sid-debug/Release',
health_url => 'http://debug.backend.mirrors.debian.org/_health',
}
url => 'http://debug.backend.mirrors.debian.org/debian-debug/dists/sid-debug/Release',
health_url => 'http://debug.backend.mirrors.debian.org/_health',
}