Posts

Showing posts from March, 2016

"ERROR: Could not find cookbook in your cookbook path, skipping it" in Chef

Image
Chef is a automation framework tool which help us to deploy code or configuration across multiple systems which may be physical, virtual or cloud systems. Here I am just want to highlight one small issue which I got when I was trying to upload cookbook from my workstation. Everything was in place, but still it was throwing below error: $ knife  cookbook upload cookbook_name ERROR: Could not find cookbook  cookbook_name  in your cookbook path, skipping it ERROR: Failed to upload 1 cookbook. Usually, by default knife will use default location specified in  ~/.chef/knife.rb file for cookbook. In my everything was correctly configured as below : $ cat ~/.chef/knife.rb | grep cookbook_path cookbook_path [ '.', '..' ] I was trying to upload as per directory name given to cookbook. After, doing lots of search finally got to know that knife command will compare the cookbook name from metadata.rb file in cookbook directory. Then I made the correction in ...