salt icon indicating copy to clipboard operation
salt copied to clipboard

SLS search syntax should support nested grains

Open octplane opened this issue 13 years ago • 6 comments

Hi,

It would be nice if the G@ syntax to search in grains supported nested grains as described in https://groups.google.com/forum/#!search/nested$20grains$20sls/salt-users/PuLsf3VB4aM/KA14kcNOyZoJ

octplane avatar Jun 14 '13 14:06 octplane

When you say search, where are you using G@ ?

thatch45 avatar Jun 14 '13 15:06 thatch45

In the linked thread, it looks like a solution was found. Does that solution work for you?

basepi avatar Jun 14 '13 16:06 basepi

Yes. This is merely a feature request in fact.

Also, the documentation mentions nested grains and doesn't give clear examples on how to manipulate these...

@thatch45 yes, this would be to use with G@...

octplane avatar Jun 16 '13 17:06 octplane

ok, makes sense!

thatch45 avatar Jun 16 '13 17:06 thatch45

Support for this in overstate SLSs ( http://docs.saltstack.com/ref/states/overstate.html ) would be cool too (just hit the issue here)

octplane avatar Jun 17 '13 14:06 octplane

Looks like this is documented, https://docs.saltstack.com/en/latest/topics/targeting/grains.html

Closing.

jacobhammons avatar Oct 07 '15 12:10 jacobhammons