Skip to content
Snippets Groups Projects
Commit b17df451 authored by Chris Croome's avatar Chris Croome
Browse files

Enable ping and ssh for master node

parent 276a999c
No related branches found
Tags 2.2.0
No related merge requests found
Pipeline #16994 passed
......@@ -24,37 +24,35 @@
* checks applied to all hosts having the
* `address` resp. `address6` attribute
* defined.
*
* apply Service "ping4" {
* import "generic-service"
*
* check_command = "ping4"
*
* assign where host.address
* }
*
* apply Service "ping6" {
* import "generic-service"
*
* check_command = "ping6"
*
* assign where host.address6
* }
*/
apply Service "ping4" {
import "generic-service"
check_command = "ping4"
assign where host.address && host.name == NodeName
}
apply Service "ping6" {
import "generic-service"
check_command = "ping6"
assign where host.address6 && host.name == NodeName
}
/*
* Apply the `ssh` service to all hosts
* with the `address` attribute defined and
* the custom variable `os` set to `Linux`.
*
* apply Service "ssh" {
* import "generic-service"
*
* check_command = "ssh"
*
* assign where (host.address || host.address6) && host.vars.os == "Linux"
* }
*/
apply Service "ssh" {
import "generic-service"
check_command = "ssh"
assign where (host.address || host.address6) && host.vars.os == "Linux" && host.name == NodeName
}
apply Service for (http_vhost => config in host.vars.http_vhosts) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment