Commit Graph

7 Commits (3d614bfe84d7274b0042685625b5c5b5c27f50f1)

Author SHA1 Message Date
Matt Clay 797664d9cb Python 2.6 `str.format()` compatibility fixes. 7 years ago
Matt Martz e2f16cfaf7 Port vault-keyring.py to properly load the config. Fixes #31304 (#31315) 7 years ago
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