Commit Graph

5 Commits (5e9a2b8528a0f49f0a5b3e1fe7af9cef0b2cd107)

Author SHA1 Message Date
Justin Mayer fda131504b Support multiple vault passwords in keyring script
Allows users to specify a key name in a given project’s `ansible.cfg`
file and thus handle keyring integration with vaults with different
passwords. If no key name is specified, the original default `ansible`
key name will be used.

Other improvements:

* `username` is now optional; defaults to user that invokes the script
* change string interpolation to new `.format()` style
* clean up and expand upon documentation
* enforce PEP 8 compliance
8 years ago
Brian Coca 18214e5948 added metadata to vault scrypt 8 years ago
Adrian Likins 675561e116 fix vault-keyring.py 'No [vault] section' error
vault-keyring.py was using an older version of
the ansible.constants.load_config_file() API.
The newer version returns a tuple, which caused
the config load to fail and a catch all exception
to blame it on a missing section.

Update to new API, and catch the ConfigParser error
specifically.

Fixes #15984
9 years ago
Matt Martz bf52e541fb Add newline when printing the password 9 years ago
Matt Martz 6d1a834b81 Add vault-keyring.py contrib script that can be used with --vault-password-file 9 years ago