【发布时间】:2017-05-02 13:52:10
【问题描述】:
对于 chef-solo,您如何使用未定义任何食谱的食谱中的资源?例如:https://github.com/Nordstrom/diskpart-cookbook
我已经把它下载到了本地的 cookbooks/ 文件夹中,我所有的其他食谱依赖项都在其中。我已将其添加到我的 run_list 中,如下所示:
{
"run_list": [ "recipe[otherstuff]", "recipe[diskpart]" ]
}
但是当我尝试导入它时,例如include_recipe 'diskpart,它只是抱怨它could not find recipe default for cookbook diskpart。
我想使用 repo 中定义的资源,例如diskpart_disk。
【问题讨论】:
标签: chef-infra chef-recipe chef-solo