chef-boneyard / chef-vault

chef-vault cookbook
https://supermarket.chef.io/cookbooks/chef-vault
Apache License 2.0
60 stars 53 forks source link

Add `chef_vault()` helper method to efficiently list items in a vault #69

Closed saidmasoud closed 6 years ago

saidmasoud commented 6 years ago

Description

This PR adds a helper method to list items in a vault. Per the below referenced issue, data_bag() was suggested to be used to list items in a vault. However, that method also returns the keys in addition to the items, forcing users to parse the list and remove the keys. The new method essentially does this for users to keep their code bases cleaner.

Issues Resolved

66

Check List

saidmasoud commented 6 years ago

Thanks for the comments, @thommay! I have addressed them with my latest commit.

thommay commented 6 years ago

Awesome, thanks!