【发布时间】:2020-04-05 22:16:42
【问题描述】:
有没有办法:
salt '*' state.apply nginx test=True
通过salt-api?
我正在这样做:
curl -sSk http://salt:8000
-H 'Accept: application/x-yaml'
-H 'X-Auth-Token: token'
-d client=local
-d tgt='*'
-d fun=state.apply
-d arg=nginx
-d test=True
但它实际上应用了新状态。
提前致谢!
【问题讨论】:
标签: api curl salt-stack salt