New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salt-ssh does not support compound matching or pillars #27842
Comments
@Joeskyyy, thanks for the report. Related to #8516. |
@jfindlay Awesome, tried to search the issues before creating this and didn't catch that one (: Does the salt team have a general ETA for this? Even something like "next release" is fine, just looking at how long I'll have to use some custom fudging in the interim. |
@Joeskyyy, I'm not sure. We have many things we need to get done for Boron and don't have the resources to work on everything. Help is appreciated if you can contribute. |
@jfindlay I'll see if I can hack around for a bit. I've at least got salt-ssh accepting the -C flag, but not actually targeting correctly! (That's totally halfway, right? :P) Having some trouble understanding how the Part of me (the naive part, of course) was hoping it was as simple as adjusting
|
@Joeskyyy, @basepi is the targeting and the salt-ssh guy. You should ask him. |
Here's the real problem: we don't have grains data for minions. That's the number one blocker for extending the targeting options. The only solution I can think of would be to reach out to all minions in the roster on every command to retrieve their grains data. We could theoretically do it once and cache that data, but we have no way to know if it's correct, as the only thing we know about a server is its hostname, and hostnames move from server to server. |
@basepi Ah, that makes more sense then. I'm safely assuming that when I call Although, how does the already present |
Interestingly, the Salt-ssh will take the desired expr_form and check if the chosen roster supports it. If it doesn't support it it returns an empty set I think (though I thought it logged the fact as well... Apparently not.) |
Oh, well that changes everything then, hmmm... I guess what we could do, expounding on your idea, is to give salt-ssh users a configurable option to cache or not cache minion grains? I could see a case where people wouldn't need to always fetch new minion data each time. Something along the lines of:
This would let the user choose to grab new minion cache from all their minions on their roster if they so chose to (Also via a configurable param in their master.conf, presumably). Heck, maybe even utilising some existing functionality in the saltutil.sync_* functions? |
Perhaps. I'm also thinking we don't cache by default, and just fetch the data every time a grains match is chosen. It will add a non-trivial amount of overhead to the command, but will result in fewer user-educating issues down the road. |
Does save you a load of github issues, forum, and IRC questions I suppose haha As long as it's configurable I think the people who truly care about that little bit of performance bumping will know what to do. So I'd +1 your version. To be quite honest, I wouldn't even know where to begin on this scope now. :\ |
I think this is the scope of the feature request:
I should note that even with this spec, I don't know when I'll have time to tackle this. It does interest me, but it's hard to work on features when there are so many bugs open.... |
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. |
I just ran into this issue while trying to target minions with |
Looks like even in the latest, salt-ssh still fails to support compound matching and pillar matching? Is there some reason I'm not catching that this wouldn't work via salt-ssh?
This would be really nice to have for those looking to run agent-less.
The text was updated successfully, but these errors were encountered: