SaltStack:如何针对特定的小兵

时间:2015-06-26 02:20:25

标签: salt-stack

在申请州时,是否有可能针对一组特定的小兵?而不是做:

salt '*' state.sls mystate.sls

我想这样做:

salt '[key1,key2,...]' state.sls mystate.sls

1 个答案:

答案 0 :(得分:1)

当然,只需使用-L

salt -L 'key1,key2,key3,...' state.sls mystate.sls

http://docs.saltstack.com/en/latest/topics/targeting/globbing.html#lists