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

Content/lookup config #265

Closed briantist closed 2 years ago

briantist commented 2 years ago
SUMMARY

Resolves #250

Adds a lookup plugin that can retrieve plugin configuration, for use in calling modules or setting module_defaults

ISSUE TYPE
COMPONENT NAME

vault_ansible_settings

ADDITIONAL INFORMATION

https://github.com/ansible-collections/community.hashi_vault/discussions/242

github-actions[bot] commented 2 years ago

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and the docs are now incorporated into main: https://ansible-collections.github.io/community.hashi_vault/branch/main

codecov[bot] commented 2 years ago

Codecov Report

Merging #265 (c80a7f4) into main (b63afc3) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #265      +/-   ##
==========================================
+ Coverage   98.34%   98.40%   +0.05%     
==========================================
  Files          66       68       +2     
  Lines        3208     3321     +113     
  Branches      267      287      +20     
==========================================
+ Hits         3155     3268     +113     
  Misses         44       44              
  Partials        9        9              
Flag Coverage Δ
env_docker-default 98.40% <100.00%> (+0.05%) :arrow_up:
integration 82.07% <100.00%> (+1.03%) :arrow_up:
sanity 39.40% <27.45%> (-0.48%) :arrow_down:
target_ansible-doc 100.00% <ø> (ø)
target_auth_approle 89.47% <ø> (ø)
target_auth_aws_iam 50.00% <ø> (ø)
target_auth_cert 86.36% <ø> (ø)
target_auth_jwt 91.30% <ø> (ø)
target_auth_ldap 89.47% <ø> (ø)
target_auth_none 100.00% <ø> (ø)
target_auth_token 71.42% <ø> (ø)
target_auth_userpass 85.71% <ø> (ø)
target_connection_options 74.76% <ø> (ø)
target_controller 81.88% <96.46%> (+1.04%) :arrow_up:
target_filter_vault_login_token 77.77% <ø> (ø)
target_import 39.40% <27.45%> (-0.48%) :arrow_down:
target_lookup_hashi_vault 81.33% <ø> (ø)
target_lookup_vault_ansible_settings 57.77% <100.00%> (?)
target_lookup_vault_kv1_get 91.30% <ø> (ø)
target_lookup_vault_kv2_get 91.11% <ø> (ø)
target_lookup_vault_login 88.57% <ø> (ø)
target_lookup_vault_read 90.00% <ø> (ø)
target_lookup_vault_token_create 78.18% <ø> (ø)
target_lookup_vault_write 59.14% <ø> (ø)
target_module_utils 97.24% <ø> (ø)
target_module_vault_kv1_get 87.23% <ø> (ø)
target_module_vault_kv2_get 86.95% <ø> (ø)
target_module_vault_login 83.33% <ø> (ø)
target_module_vault_pki_generate_certificate 78.26% <ø> (ø)
target_module_vault_read 85.36% <ø> (ø)
target_module_vault_token_create 90.00% <ø> (ø)
target_module_vault_write 57.53% <ø> (ø)
target_modules 79.08% <ø> (ø)
units 95.42% <100.00%> (+0.16%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
plugins/lookup/vault_ansible_settings.py 100.00% <100.00%> (ø)
...unit/plugins/lookup/test_vault_ansible_settings.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b63afc3...c80a7f4. Read the comment docs.

briantist commented 2 years ago

thanks for reviewing this @felixfontein !