diff --git a/changelogs/fragments/929-vault-namespace-support.yml b/changelogs/fragments/929-vault-namespace-support.yml new file mode 100644 index 0000000000..bf22978aff --- /dev/null +++ b/changelogs/fragments/929-vault-namespace-support.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - hashi_vault - support ``VAULT_NAMESPACE`` environment variable for namespaced lookups against Vault Enterprise (in addition to the ``namespace=`` flag supported today) (https://github.com/ansible-collections/community.general/pull/929). diff --git a/plugins/lookup/hashi_vault.py b/plugins/lookup/hashi_vault.py index 3cff19d939..5ace528e44 100644 --- a/plugins/lookup/hashi_vault.py +++ b/plugins/lookup/hashi_vault.py @@ -117,6 +117,9 @@ DOCUMENTATION = """ default: True namespace: description: Namespace where secrets reside. Requires HVAC 0.7.0+ and Vault 0.11+. + env: + - name: VAULT_NAMESPACE + version_added: 1.2.0 aws_profile: description: The AWS profile type: str