我已经阅读了Chef网站上的run_list手册,但找不到答案...
我有一本名为“早餐”的食谱
而且我有一个角色配置文件,该文件将运行列表定义为:
"run_list": [
"recipe[breakfast::egg]",
"recipe[breakfast::bread]",
"recipe[breakfast]"
]
基于以上所述,我知道配方“ egg.rb”和“ bread.rb”正在/ cookbooks / breakfast / recipes /中运行
我的问题是,对于运行列表定义“ recipe [breakfast]”上的第三个配方,正在运行的是什么?是/cookbooks/breakfast/recipes/default.rb吗?
提前感谢!〜
是,如果仅指定食谱名称而未指定配方名称,则表示运行了default
配方。不仅在run_list中如此,而且当您在另一个这样的配方中包含1个配方时也是如此:
include_recipe 'breakfast' # will run breakfast::default recipe