-
Notifications
You must be signed in to change notification settings - Fork 70
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
In hiera backend, add ability to use "deep" _nodequery #84
Comments
+1 |
I am happy to give it a try but I would need a couple guidelines before I start writing this...
|
Actually we don't need this feature because we can just interpolate the hiera function and let the magic happen:
Amazing! |
Unfortunately, this only works with Hiera 2+ as otherwise, everything hiera can fetch is a string. Right? |
I see this behavior too. With my example above I end up with:
but base on the doc (https://docs.puppet.com/hiera/1/puppet.html#hiera-lookup-functions) the hiera function returns arrays and hashes as well... So it looks like this is a problem with the puppetdb backend not returning an array. Using hiera CLI or the query_nodes function I am retrieving the array as expected though...
|
I'm also trying to accomplish this exact same thing for elastic search. Too bad a string is returned instead of an array. |
Any update on this? |
It's a limitation of the hiera function used within a hiera yaml: https://docs.puppet.com/hiera/3.3/variables.html#the-hiera-lookup-function
|
Hey!
It would be convenient if the hiera backend was able to substitute a node query when returning a structure from hiera. For example, if we have this:
It would be convient if the hiera backend was able to return:
The text was updated successfully, but these errors were encountered: