-
Notifications
You must be signed in to change notification settings - Fork 625
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
lookup plugin (hashi_vault) not found #588
Comments
At the top level of your project repository, include the following in ---
collections:
- name: community.hashi_vault
version: 1.1.3 # this is optional You'll also want to ensure "Enable collections download" is turned on in settings -> Job settings. Then when AWX syncs the project it will check for that requirements.yml file and install the collection you need. |
Thanks! |
|
Sorry, I'm an idiot :)
Where do I need to install the hvac module? |
Yep, we had the same problem. Unfortunately the only "official" way is to build your own EE image with that package installed and maintain it. You can look into Ansible-Builder if you want to get deep into the woods with customizing your EE, but the following dockerfile was a pretty easy way for me to build an image that did what I needed:
Then you'll need to figure out where to store your modified image and assign it as an EE in the awx operator config:
You're also able to have multiple entries under Bit of a frustrating process for sure. |
Closing. This is not a problem related to this project, |
@kimbernator is your method still working? Tried the same but got a permission error: ansible/awx#11854 |
What needs to be done to make the function work?
test_kubeconfig: "{{ lookup('hashi_vault', 'secret=secret/data/k8s/rancher/kubeconfig/test token={{ v_token }} url={{ v_url }}') }}"
Im used 0.14.0
And I get the error
"msg": "An unhandled exception occurred while running the lookup plugin 'template'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ lookup('hashi_vault', 'secret=secret/data/k8s/rancher/kubeconfig/test token={{ v_token }} url={{ v_url }}') }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: lookup plugin (hashi_vault) not found",
The text was updated successfully, but these errors were encountered: