在申请州时,是否有可能针对一组特定的小兵?而不是做:
salt '*' state.sls mystate.sls
我想这样做:
salt '[key1,key2,...]' state.sls mystate.sls
答案 0 :(得分:1)
当然,只需使用-L
salt -L 'key1,key2,key3,...' state.sls mystate.sls
http://docs.saltstack.com/en/latest/topics/targeting/globbing.html#lists