Replies: 4 comments
-
Hi @ghferrari this certainly is strange. There aren't any changes in 4.2.0 I can think of that would've affected this. Could you show the actual call you're making to reproduce it? |
Beta Was this translation helpful? Give feedback.
-
Hi @briantist , I see this bug with any standard lookup e.g. in this format
If I revert to |
Beta Was this translation helpful? Give feedback.
-
So, I cannot reproduce this myself, but I have some ideas. First, you are using the short name Your collection listing doesn't actually show any versions of The Perhaps making matters more confusing is that the first Ansible community package after the collection split had a version of 2.10, which matches the version of I bring this up because the community package would include So I think there's some combination of redirect issues + old versions of the plugin and/or collection(s) involved. I would encourage you to try the following things, in various combinations:
Then give it a try again. |
Beta Was this translation helpful? Give feedback.
-
SUMMARY
According to the hashi_vault Ansible docs:
Version 4.1.0 would indeed use the environment variable. In my testing, version 4.2.0 satisfies neither of the conditions above:
I appreciate that
hashi_vault
4.2.0 warns that it does not support Ansible 2.10.17, however, I thought it worth reporting this in case the bug is unrelated.ISSUE TYPE
COMPONENT NAME
hashi_vault
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
OS: CentOS 8 Stream
Python 3.6.8
STEPS TO REPRODUCE
Ensure that VAULT_ADDR is defined as an environment variable then attempt to lookup a vault parameter without specifying the vault address in Ansible, so that the
hashi_vault
should use the environment variable.EXPECTED RESULTS
hashi_vault
should use the VAULT_ADDR environment variable or if not defined, it should raise an error.ACTUAL RESULTS
The environment variable is not used and instead
hashi_vault
uses 127.0.0.1Beta Was this translation helpful? Give feedback.
All reactions