Added service_mdstat.conf
This commit is contained in:
parent
5562662f13
commit
755c3519df
1 changed files with 10 additions and 0 deletions
10
service_mdstat.conf
Normal file
10
service_mdstat.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
apply Service "mdstat-" for (name => opts in host.vars.mdstat) {
|
||||||
|
import "generic-service"
|
||||||
|
|
||||||
|
check_command = "mdstat"
|
||||||
|
|
||||||
|
vars.mdstat_name = name
|
||||||
|
for (k => v in opts) {
|
||||||
|
vars["mdstat_" + k] = v
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue