22 lines
416 B
Plaintext
22 lines
416 B
Plaintext
|
apply Service "apt" {
|
||
|
import "generic-service"
|
||
|
|
||
|
check_command = "apt"
|
||
|
|
||
|
command_endpoint = host.vars.agent_endpoint
|
||
|
|
||
|
assign where host.vars.agent_endpoint && host.vars.os == "Linux"
|
||
|
}
|
||
|
|
||
|
apply Service "disk" for (disk => config in host.vars.disks) {
|
||
|
import "generic-service"
|
||
|
|
||
|
check_command = "disk"
|
||
|
|
||
|
command_endpoint = host.vars.agent_endpoint
|
||
|
|
||
|
assign where host.vars.agent_endpoint
|
||
|
|
||
|
vars += config
|
||
|
}
|