我的项目是由我们公司的食谱构成的,该目录与第 3 方食谱分开。
cookbooks
|
|- CompanyCookbooks
| |
| |-MyCookbook
|
|- 3rdPartyCookbooks
| |
| |-ark
在“MyCookbook”目录中工作时,我正在尝试在我的食谱上运行厨房融合。MyCookbook 中的默认食谱取决于 ark,它位于 3rdPartyCookbooks 目录下的一组单独的食谱中。但我收到以下错误。
Missing Cookbooks:
------------------
No such cookbook: ark
我试图将“3rdPartyCookbooks”的路径添加到我的knife.rb 中,但这没有用。
cookbook_path ['../../CompanyCookbooks', '../../3rdPartyCookbooks']
我尝试将各种 cookbook_path 排列添加到我的 .kitchen.yml 文件的配置部分,但这也不起作用。
provisioner:
name: chef_zero
data_bags_path: ../../../databags
roles_path: ../../../roles
solo_rb:
cookbook_path:
- ../../3rdPartyCookbooks
- ../../CompanyCookbooks
和
provisioner:
name: chef_zero
data_bags_path: ../../../databags
roles_path: ../../../roles
cookbooks_path: '../../CompanyCookbooks, ../../3rdPartyCookbooks'