Closed Lasering closed 3 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.
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.