运行主机名cookbook时出错 - Chef :: Exceptions :: CookbookNotFound

时间:2017-03-05 01:15:45

标签: chef chef-recipe

不确定为什么,但是当我尝试引用主机名烹饪书时,我收到错误:

Chef::Exceptions::CookbookNotFound

我的包装食谱只有include_recipe" hostanmes"在它和cookbook位于cookbooks目录的磁盘上。我的任何其他食谱都没有这个问题所以我认为这里有一些奇怪的事情。

我使用这个食谱: https://supermarket.chef.io/cookbooks/hostnames

为什么我会收到此错误的任何想法?我在Test Kitchen运行这个食谱。

1 个答案:

答案 0 :(得分:0)

depends 'hostname'添加到您的包装器食谱的metadata.rb。

相关问题