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

Add option to use env vars for variables #148

Open
colmsnowplow opened this issue Jul 17, 2020 · 2 comments
Open

Add option to use env vars for variables #148

colmsnowplow opened this issue Jul 17, 2020 · 2 comments

Comments

@colmsnowplow
Copy link
Contributor

It would be a nice convenience feature to be able to just set env vars for the playbook vars I want to use, then use some kind of flag in the sql-runner command (eg. -env-vars).

This way each target's config can be in a bash profile, and there's less hassle in running commands.

@colmsnowplow
Copy link
Contributor Author

colmsnowplow commented Jul 17, 2020

With further experimentation it seems that vars potentially can't be supplied for the 'targets' playbook section, only the 'variables' one (unless I'm doing something wrong) - so perhaps this requirement is to implement the ability to fill any template in the playbook, and also do so via env vars.

@alexanderdean
Copy link
Member

See also #149

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

No branches or pull requests

2 participants