user998824
user998824

Reputation: 77

SaltStack: How to target specific minions

Is it possible to target a specific set of minions when applying a state? Instead of doing:

salt '*' state.sls mystate.sls

I want to do:

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

Upvotes: 1

Views: 445

Answers (1)

Oberix
Oberix

Reputation: 1141

Of course, just use -L

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

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

Upvotes: 1

Related Questions