Giter VIP home page Giter VIP logo

ansible-tools's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-tools's Issues

ansible-vault-helper gives unclear instructions

If I checkout a project with already vaulted secrets to a new machine and try to provision:

$ ansible-playbook -i inventory/production machine.yml
Unable to find a password with name myvaultname.

Call myvaultname --set to save a password inside the keyring.
Unable to run ansible-vault-helper. Cannot continue.

However:

$ ansible-vault-helper myvaultname --set
usage: ansible-vault-helper [-h] [-u]
ansible-vault-helper: error: unrecognized arguments: jugu --set

At this point I am a bit confused, what binary should I call withmyvaultname --set parameters?

Looks like ansible-vault-helper -u fixes the situation but I am unsure whether that is actually the right command here?

It also gives a warning about changing the vault PW โ€“ my first thought on that was that it would actually change the encryption PW of the secret and re-encrypt them. But it actually changes (or creates) the PW used to access the vaulted secret file(s) to MacOS keychain. This is a tad confusing as well.

My ansible.cfg has:

[vault]
name = myvaultname

ansible-vault syntax has changed and is incompatible with ansible-tools

Ansible-vault syntax has changed and is incompatible with ansible-tools. Nowadays it expects the syntax ansible-vault edit --vault-password-file=/usr/local/bin/ansible-vault-helpers secret.yml. vaultify in ansible-tools tries to use the old format ansible-vault --vault-password-file=/usr/local/bin/ansible-vault-helper edit secret.yml, which causes this error:

usage: ansible-vault [-h] [--version] [-v] {create,decrypt,edit,view,encrypt,encrypt_string,rekey} ...
ansible-vault: error: unrecognized arguments: --vault-password-file=/usr/local/bin/ansible-vault-helper --vault-password-file=/usr/local/bin/ansible-vault-helper

Other commands like ansible-playbook still work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.