mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
As per https://learn.hashicorp.com/tutorials/vault/namespaces, setting VAULT_NAMESPACE env var is a completely supported mechanism to make all vault command use said namespace, so hashi_vault lookup function should do the same.
Co-authored-by: Holt Wilkins <hwilkins@palantir.com>
(cherry picked from commit 1a5702cf21
)
Co-authored-by: holtwilkins <5665043+holtwilkins@users.noreply.github.com>
This commit is contained in:
parent
3a95a84963
commit
0fe7ea63a8
2 changed files with 6 additions and 0 deletions
3
changelogs/fragments/929-vault-namespace-support.yml
Normal file
3
changelogs/fragments/929-vault-namespace-support.yml
Normal file
|
@ -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).
|
|
@ -117,6 +117,9 @@ DOCUMENTATION = """
|
||||||
default: True
|
default: True
|
||||||
namespace:
|
namespace:
|
||||||
description: Namespace where secrets reside. Requires HVAC 0.7.0+ and Vault 0.11+.
|
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:
|
aws_profile:
|
||||||
description: The AWS profile
|
description: The AWS profile
|
||||||
type: str
|
type: str
|
||||||
|
|
Loading…
Reference in a new issue