Open mitar opened 7 years ago
Can you not do this with compound match?
salt -C L@minion1,minion2 or www*
test.ping
https://docs.saltstack.com/en/latest/topics/targeting/compound.html
I guess I am just asking for alternative syntax. :-) Which is somewhere in between of all-powerful compound match and just a fixed list.
I don't see a reason we couldn't allow the list to be a list of globs.
I assumed this would work (list matching with globs) and was disappointed when it didn't. 👍
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Unstale.
Thank you for updating this issue. It is no longer marked as stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Unstale.
Thank you for updating this issue. It is no longer marked as stale.
Currently, one can or do a list matching or glob matching, but not both at the same time. But commas are not so common in server names, so I think that we could have both at the same time. This is at least what in most cases I would need. A simply way to list servers and sometimes to use some wildcard. I managed to implement this pretty easily in Python: