docker-ansible icon indicating copy to clipboard operation
docker-ansible copied to clipboard

support hashicorp consul and vault

Open acelinkio opened this issue 3 years ago • 3 comments

SUMMARY: This request is for adding python-consul and hvac python libraries to support Ansible lookups to HashiCorp Consul/Vault.

CONTEXT: HashiCorp Consul and HashiCorp Vault are powerful development tools for storing secrets/configurations and widely used across the industry. Ansible offers lookup modules for these tools, however they require additional packages on the Ansible controller to use.

DETAILS: consul_kv_lookup https://docs.ansible.com/ansible/latest/collections/community/general/consul_kv_lookup.html requires: python-consul2 python library https://www.consul.io/api-docs/libraries-and-sdks

community.hashi_vault.hashi_vault https://docs.ansible.com/ansible/latest/collections/community/hashi_vault/hashi_vault_lookup.html#ansible-collections-community-hashi-vault-hashi-vault-lookup requires: hvac python library https://www.vaultproject.io/api-docs/libraries

edit: updating to python-consul2 library + links to libraries

acelinkio avatar May 24 '21 22:05 acelinkio

Can open a MR if this request is accepted and flavor is specified.

acelinkio avatar May 24 '21 22:05 acelinkio

Thanks for this suggestion. I will look into this regarding size and potential flavour to use (I am currently close to GitHub Action limit in regards to available different builds to trigger)

cytopia avatar May 26 '21 11:05 cytopia

@acelinkit Is it sufficient to just install python-consul2 and hvac python libraries?

cytopia avatar Oct 25 '21 09:10 cytopia

It was enough to use both of those. Going to close issue, tools are pretty specific and not needed in a general image

acelinkio avatar Nov 23 '22 09:11 acelinkio