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

hashi_vault - add env and vars for userpass options #96

Merged
merged 2 commits into from
Jun 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelogs/fragments/96-userpass-vars-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- hashi_vault - add ``ANSIBLE_HASHI_VAULT_USERNAME`` env var and ``ansible_hashi_vault_username`` ansible var for ``username`` option (https://github.com/ansible-collections/community.hashi_vault/pull/96).
- hashi_vault - add ``ANSIBLE_HASHI_VAULT_PASSWORD`` env var and ``ansible_hashi_vault_password`` ansible var for ``password`` option (https://github.com/ansible-collections/community.hashi_vault/pull/96).
12 changes: 12 additions & 0 deletions plugins/lookup/hashi_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,20 @@
version_added: 0.2.0
username:
description: Authentication user name.
env:
- name: ANSIBLE_HASHI_VAULT_USERNAME
version_added: '1.2.0'
vars:
- name: ansible_hashi_vault_username
version_added: '1.2.0'
password:
description: Authentication password.
env:
- name: ANSIBLE_HASHI_VAULT_PASSWORD
version_added: '1.2.0'
vars:
- name: ansible_hashi_vault_password
version_added: '1.2.0'
role_id:
description: Vault Role ID. Used in approle and aws_iam_login auth methods.
env:
Expand Down