Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 336 Bytes
apply Service "systemd_unit-" for (unit_name => opts in host.vars.check_systemd_units) {
check_command = "systemd_unit"
if (host.zone != "") {
command_endpoint = host.name
}
vars.check_systemd_unit_name = unit_name
for (k => v in opts) {
vars["check_systemd_unit_" + k] = v
}
assign where host.vars.check_systemd_units
}
You can’t perform that action at this time.