ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
129 stars 152 forks source link

add hvac python module #185

Closed sbrile closed 1 year ago

sbrile commented 1 year ago

adding hvac python module to support hashicorp vault lookup plugin.

sbrile commented 1 year ago

This will fix issue #184

austlane commented 1 year ago

The hashi_vault lookup plugin is provided by community.hashi_vault

community.general.hashi_vault is a simple redirect to community.hashi_vault.hashi_vault

community.hashi_vault specifies it's python requirements properly in meta/ee-requirements.txt

Thus, the cleaner approach would be to include community.hashi_vault in the _build/requirements.yml file of the EE.

sbrile commented 1 year ago

Only installing the collection wasn't enough for me. I had to install the hvac module separately. I also added community.hashi_vault to my collections/requirements.yml in my ansible project repo. During the project sync, AWX installed the collection, but not the hvac module.

sbrile commented 1 year ago

I verified adding community.hashi_vault in the _build/requirements.yml worked in my dev environment. The docker build must be including some extra smarts to recursively fetch the required python libraries. I'll close this PR and submit a new one.