From 787bafe0db2c0eb85bf1876b3421e4e8f28651fe Mon Sep 17 00:00:00 2001 From: Marco Kohn Date: Sun, 23 Mar 2025 21:39:44 +0100 Subject: [PATCH] add ssh, disk and http service --- zones.d/master/git/base-services.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/zones.d/master/git/base-services.conf b/zones.d/master/git/base-services.conf index bccf7f7..c1481ea 100644 --- a/zones.d/master/git/base-services.conf +++ b/zones.d/master/git/base-services.conf @@ -13,3 +13,29 @@ apply Service "ping6" { assign where host.address6 } + +apply Service "ssh" { + import "generic-service" + + check_command = "ssh" + + assign where (host.address || host.address6) && host.vars.os == "Linux" +} + + + +apply Service for (http_vhost => config in host.vars.http_vhosts) { + import "generic-service" + + check_command = "http" + + vars += config +} + +apply Service for (disk => config in host.vars.disks) { + import "generic-service" + + check_command = "disk" + + vars += config +}