summaryrefslogtreecommitdiffstats
path: root/zones.d/master/services.conf
diff options
context:
space:
mode:
Diffstat (limited to 'zones.d/master/services.conf')
-rw-r--r--zones.d/master/services.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/zones.d/master/services.conf b/zones.d/master/services.conf
new file mode 100644
index 0000000..25ca1c5
--- /dev/null
+++ b/zones.d/master/services.conf
@@ -0,0 +1,34 @@
+template Service "generic-network-service" {
+ import "generic-service"
+ zone = "master"
+}
+
+/**
+ * Basic node health checks
+ */
+
+apply Service "ping4" {
+ import "generic-network-service"
+
+ check_command = "ping4"
+
+ assign where host.address
+}
+
+apply Service "ping6" {
+ import "generic-network-service"
+
+ check_command = "ping6"
+
+ assign where host.address6
+}
+
+apply Service "ssh" {
+ import "generic-network-service"
+
+ check_command = "ssh"
+
+ vars.ssh_port = host.vars.ssh_port || 222
+
+ assign where (host.address || host.address6) && host.vars.kernel == "linux"
+}