草庐IT

mycookbook

全部标签

ruby - 使用 Knife 更新 Chef 中的运行列表

我有一本包含Recipe列表的Recipe。在chefknife中使用命令行工具从Recipe中添加一些特定Recipe(不是全部)的命令是什么?我知道将整个Recipe添加到运行列表的命令是knifenoderun_listaddservernamerecipe[cookbookname]。 最佳答案 所以你的想法是对的,knifenoderun_listadd$nodename$item就是你想要的命令。recipe[mycookbook]没有添加“整个Recipe”,而只是recipe[mycookbook::default]