ansible-collections / community.hashi_vault

Ansible collection for managing and working with HashiCorp Vault.
https://docs.ansible.com/ansible/devel/collections/community/hashi_vault/index.html
GNU General Public License v3.0
80 stars 59 forks source link

adding wrapping functionality to any plugins and modules where it makes sense #228

Open briantist opened 2 years ago

briantist commented 2 years ago
SUMMARY

223 introduces a doc fragment wrapping.py for the wrap_ttl option.

This option and the resulting functionality should be added to any plugins and modules where it could be valid, which is nearly anything that returns data.

All modified content must include tests for this as well.

Current list of candidates:

ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
lpkirby commented 2 years ago

Hi @briantist I've started doing this here: https://github.com/lpkirby/community.hashi_vault/tree/228_add_wrap_ttl But I didn't want to duplicate work if you've already start working on this. So I'll stop if you're actively working on it.

briantist commented 2 years ago

Hi @lpkirby ! Thank you for asking. I'm not currently working on this, so please proceed and open a PR when you're ready (it doesn't have to be "done" to open a PR).

Looking at the changes you have on your fork, I'll point out that there's already a doc fragment for the parameter, so you can reference that instead of specifying it directly: https://github.com/ansible-collections/community.hashi_vault/blob/main/plugins/doc_fragments/wrapping.py

If you haven't already, please also see the Contributor guide.

Finally, referring to #223 may give you some ideas for implementing the tests.

Thanks again for looking to contribute!