-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove Vagrant Epic - add in salt-cloud config file templates #347
Comments
I like the idea of pre-rendering templates with http://cheetahtemplate.org/ but it might be too hard to install and learn. we just need simple pure python string substitution in config files that needs to be run before the files is rendered as jinja. |
I don't think I understand :) What's the goal? To have a template be rendered... into another template, that is then rendered into a final state? So template1 > template2 > final? Aside from not knowing why we need that, we should be able to do it with Jinja, or any other single templating engine. I'm not sure I get the case for needing different templating engine on top of it. Any double render would probably look pretty wonky though. |
I thought an example would help. If you need to "skip" rendering some jinja, just surround it with some {% raw %}{% skipped %}{% endraw %} would compile to {% skipped %} |
the goal is template1 > template2 > final using jinja on jinja would make the file looks something like this {% raw %}my-ec2-config:
|
if we use something like "pure python string substitution" > jinja > final the file looks something like this my-ec2-config: |
In your example, you have Also your vars should use |
maybe it is a bad example. i added in a jinja loop to the the lower section of both. |
Depending on the use, a simple string substitution might be best. I don't have a clear understanding of the use though. If there would need to be tons of |
If you string substitution, you'd have to make sure there are no false positives for the string you're matching, of course. I don't know the situation well enough to know if that can be guaranteed. |
the issues comes from dealing with the cloud config files the main files are cloud Saltstack expect these files to have arbitrary jinja in them and saltstack expects them to have plain text secrets. Rambo needs to include a stock set of templates with json but without secrets. We need to copy the template (with arbitrary jinja in it) from the library to a location on disk that git ignores, then we need to inject the secret keys/tokens into the file. |
This encoding might work id: [[ id ]] |
No description provided.
The text was updated successfully, but these errors were encountered: