littlechef
littlechef copied to clipboard
Better handle recipes not present in metadata
If a recipe is not declared in the metadata LittleChef fails building the node data bag.
There could be a fallback to looking for the file on disk, and then either erroring out with a more useful error message ("you need to declare the recipe in metadata.rb") or even continuing.
This is probably the same or similar issue as when the default recipes are not found if not named the same in the cookbook meta and run_list.
e.g. 'run_list[ "cookbook::default" ]' with meta having 'recipe "cookbook", "desc"' would throw error, but if meta was defined with ::default it would run fine, or if run_list was defined without the ::default it would also run fine.
http://berkshelf.com is handling this issue.. different approach of managing cookbooks.