不确定为什么,但是当我尝试引用主机名烹饪书时,我收到错误:
Chef::Exceptions::CookbookNotFound
我的包装食谱只有include_recipe" hostanmes"在它和cookbook位于cookbooks目录的磁盘上。我的任何其他食谱都没有这个问题所以我认为这里有一些奇怪的事情。
我使用这个食谱: https://supermarket.chef.io/cookbooks/hostnames
为什么我会收到此错误的任何想法?我在Test Kitchen运行这个食谱。
答案 0 :(得分:0)
将depends 'hostname'
添加到您的包装器食谱的metadata.rb。