add ssh, disk and http service
This commit is contained in:
parent
2100809f60
commit
787bafe0db
@ -13,3 +13,29 @@ apply Service "ping6" {
|
|||||||
|
|
||||||
assign where host.address6
|
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
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user