Skip to content
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

Pass keys (from resource definition) to template #666

Closed
godefroi opened this issue Feb 10, 2018 · 1 comment
Closed

Pass keys (from resource definition) to template #666

godefroi opened this issue Feb 10, 2018 · 1 comment
Labels

Comments

@godefroi
Copy link

I have a set of configuration files that I need to write out. Each file uses an identical template, except for the key that is used to retrieve the data from Consul. Currently, I have to not only have a separate resource definition per output file (#256 would be super nice to have), I must have a separate template for each output file, even though they differ only in a single gets call. If instead, the value(s) of the keys = [...] from the resource was passed into the template, each of my output files could share a template.

@okushchenko
Copy link
Collaborator

Can you describe your use case in more details in #256. Closing this one for now, as the discussion will be held in #256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants