-
Notifications
You must be signed in to change notification settings - Fork 35
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
Datum variable Interpolation #21
Comments
Would this mean that if we enter something like: |
That's the principle, yes. But you could do something similar by creating a Datum handler as explained here: https://github.com/gaelcolas/Datum/blob/master/docs/Datum_Redirections.md |
Yup, tried the handler, and it works great when there is only one variable to get, and the full path to get it is static, but I wasn't able to make it work when there are also a variable in the path to follow to get the variable. I think it's what you described as a nested lookup in your document. I'll try to describe our setup to demonstrate the problem. Our folder structure is like this
First, I create SQLSERVR01.yml which goes under Allnodes/V4Unit (pardon the french in the labels :) )
Then it's in in PortailSQL.yml that I encounter the problem of a nested lookup
So, here, I need to get the |
Anyone looked into this lately? I just started using datum, and found that I have a need to concatenate data from different layers into one final string. |
Similar to Redirections, it would be useful to use variable interpolation in Datum similar to Hiera:
'#{user}@#{domain}'
That would do a lookup for User and a lookup for Domain, and then aggregates them.
The text was updated successfully, but these errors were encountered: