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

Global flag --vault-password-file not working #51

Open
gitrust opened this issue Jul 28, 2022 · 0 comments
Open

Global flag --vault-password-file not working #51

gitrust opened this issue Jul 28, 2022 · 0 comments

Comments

@gitrust
Copy link

gitrust commented Jul 28, 2022

I found your tool today after searching for a standalone alternative for ansible-vault. Great work!

Unfortunately the global flag --vault-password-file seems not to work. I used the docker version of gwvault.

The only way I got this working is by providing the vault password file via the ANSIBLE_VAULT_PASSWORD_FILE environment variable:

docker run -it --rm -e ANSIBLE_VAULT_PASSWORD_FILE=/av/vault_pass -v "$PWD":/workdir -v "~/.ansible:/av:ro" ghcr.io/goodwaygroup/gwvault  view keyvault.yaml

I tried to use it different ways --vault-password-file /av/vault_pass and --vault-password-file=/av/vault_pass. No success.

Am I doing something wrong?

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

No branches or pull requests

1 participant