summaryrefslogtreecommitdiffstats
path: root/zones.d/master/services.conf
blob: 25ca1c54cefcb70b127d27a7845cd7db29bee27b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"
}