sous-chefs / certificate

Development repository for the certificate cookbook
https://supermarket.chef.io/cookbooks/certificate
73 stars 43 forks source link

Use chef_vault_item directly instead of reimplementing its logic #57

Closed Lasering closed 3 years ago

Lasering commented 7 years ago

I don't know if it is possible but when the data_bag_type is set to vault the current code will try to load the item from chefvault and if that fails it will try to load the item from a databag directly.

It would simpler to use the chef_vault_item helper method from the chef-vault cookbook. This way it would be more consistent with how chef-vault operates. Even better would be to use chef_vault_item_for_environment.