-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Exec mode... #300
Comments
🤔 I've thought about Having a process spawned after template execution, based on commandline args, on the other hand, isn't as dangerous IMO. But it's still a little beyond what gomplate is really designed for... This can also always be done with a shell - something like: $ sh -c "gomplate ${GOMPLATE_FLAGS} && consul -config-dir /usr/loca/etc/consul.d/" Is there any compelling reason you don't want to do that? |
In particular, I want to update a consul key and have nomad relaunch the job and use gomplate to render out the value before starting the child process. ? |
Thanks @sean-, you've convinced me 😉 |
Just for some other examples.... use-cases, we're chaining other commands like this e..g
|
I think that is basically spot on with the original suggestion. I'm still noodling on the |
One of the things that keeps coming up is the use of
gomplate
as a pre-processor followed by the execution of a binary. It would be nice if it were possible to do something like:so that
gomplate
can literally be used as a preprocessor without resorting to a shell script to stitch these two commands together.#featurerequest
The text was updated successfully, but these errors were encountered: