ansible-modules-hashivault
ansible-modules-hashivault copied to clipboard
Conversion to Ansible Collection
This PR converts the module into an Ansible collection.
Fixes: #234
Still to do: Update the documentation and remove PyPi scripts.
It can be packaged with:
ansible-galaxy collection build
The package can then be installed into the user's home with:
ansible-galaxy collection install terryhowe-hashivault-4.5.2.tar.gz
To try it out, use the following playbook:
- hosts: test
gather_facts: no
collections:
- terryhowe.hashivault
tasks:
- name: get test secret
delegate_to: localhost
hashivault_read:
secret: test/secret
register: new
- debug:
var: new.value
Somehow I missed the notification on this PR, I need to look at this.
I would really like to see this conversion to a collection happen!
Any updates on this pr?
I've cleared up the other issues and started working on this, but there is a lot for me to understand here.
You should probably get rid of the hashivault_ prefix on all modules, in the process. Modules would be used in the terryhowe.hashivault.secret form instead of terryhowe.hashivault.hashivault_secret.
It seems possible to still support hashivault_ prefix for backward playbook compatibility. See https://opendev.org/openstack/ansible-collections-openstack/src/commit/94e518e42c3d08e227df1dcf2b9a2aad4429f00d/plugins/modules/server_info.py#L65
I've fixed merge conflicts and pushed to a new branch https://github.com/TerryHowe/ansible-modules-hashivault/pull/315 but I'm going to leave this open a bit to get some more info out of this PR.
must have :)
Stale