SaltStack:如何针对特定的仆从
SaltStack: How to target specific minions
在应用状态时是否可以针对一组特定的仆从?而不是做:
salt '*' state.sls mystate.sls
我想做:
salt '[key1,key2,...]' state.sls mystate.sls
当然,只需要使用-L
salt -L 'key1,key2,key3,...' state.sls mystate.sls
http://docs.saltstack.com/en/latest/topics/targeting/globbing.html#lists
在应用状态时是否可以针对一组特定的仆从?而不是做:
salt '*' state.sls mystate.sls
我想做:
salt '[key1,key2,...]' state.sls mystate.sls
当然,只需要使用-L
salt -L 'key1,key2,key3,...' state.sls mystate.sls
http://docs.saltstack.com/en/latest/topics/targeting/globbing.html#lists