-
Notifications
You must be signed in to change notification settings - Fork 2k
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
How To Set Docker Env From Vault #2902
Comments
Hi mqasum1983, I don't think it's currently possible. It looks like you are trying to run a docker registry? Rather create the config yaml file directly using the |
Hi, I have some variable for DB's that application uses so that I need from Vault as the variable. Thanks |
Yes, i hear you and understand. I am saying right now you can't do it the way you are asking about. You need to use another mechanism to lift the db secrets into your application environment. Eg, a shell script populated using a consul-template block, and then |
Thanks @pieterbreed May be it will work, just looking to find a way of doing that in nomad |
Manage to do it
|
This is fantastic. Thank you for sharing. |
@mqasim1983 Awesome job figuring out before we even released 👍 Closing as Nomad 0.6 bring support for this! |
Thank you @mqasim1983. I encountered this a couple weeks ago and ended up
using consul template. This sounds better.
@adadgar is this new functionality going to be documented with an example?
…On Wed, Jul 26, 2017 at 4:13 PM Alex Dadgar ***@***.***> wrote:
Closed #2902 <#2902>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2902 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAqFRGsY0A2mYknlodTs8LSEtfTDtK5fks5sR8gXgaJpZM4OjFjl>
.
|
Hi, I still need to do it from Vault not from Consul. Please let me know how can I do it from Vault Thanks |
Thanks everyone Docs : https://www.nomadproject.io/docs/job-specification/template.html |
I might be off-target here, but that sounds like you haven't set up vault/nomad integration yet. After you've done that, in the nomad job file, you need a |
Hi @pieterbreed I have the following config for my testing env
Nomad Test Job
All nomad servers are nomad client as well, please let me what I am missing. Thanks |
@mlehner616 Yep! There is an example on the template documentation: https://www.nomadproject.io/docs/job-specification/template.html#environment-variables And also in the guide page: https://www.nomadproject.io/docs/operating-a-job/configuring-tasks.html#environment-variables Let us know if you think they can be improved! PRs welcome 😄 |
@mqasim1983 Does the default policy have the ability to read the secret? You can test by creating a default token from your root token and trying to read:
|
Hi, @dadgar Yes it is
Thanks |
Thanks everyone it working |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Hi,
How to set docker env from vault as mentioned #597
Thanks
The text was updated successfully, but these errors were encountered: