參考https://github.com/jollyroger/salt-states/blob/master/salt/minion/init.sls
restart_minion:
cmd
.
wait:
-
name:
"echo 'invoke-rc.d salt-minion restart'|at now + 1 min"
-
order:
last
-
watch:
-
pkg:
salt-minion
-
file:
/etc/salt/minion
-
file:
/etc/salt/minion
.
d
-
require:
-
pkg:
at
salt測試運作:
#> salt '*' state.highstate -v tset=True
#> salt-call '*' test.ping