Chef infra 如何使用/实施此厨师食谱?
我对厨师非常陌生,但我尝试使用以下厨师食谱: 我认为我需要创建一个新的烹饪书,并将菜谱放入default.rb,将.erb放入templates/default,但当我尝试在chef client中使用烹饪书(“dcpromote”)时,我遇到了一个错误:Chef infra 如何使用/实施此厨师食谱?,chef-infra,chef-recipe,Chef Infra,Chef Recipe,我对厨师非常陌生,但我尝试使用以下厨师食谱: 我认为我需要创建一个新的烹饪书,并将菜谱放入default.rb,将.erb放入templates/default,但当我尝试在chef client中使用烹饪书(“dcpromote”)时,我遇到了一个错误: Compiling Cookbooks... ================================================================================ Recipe Compile
Compiling Cookbooks...
================================================================================
Recipe Compile Error in c:/chef/cache/cookbooks/dcpromote/recipes/default.rb
================================================================================
NameError
---------
uninitialized constant Windows::Helper
Cookbook Trace:
---------------
c:/chef/cache/cookbooks/dcpromote/recipes/default.rb:8:in `from_file'
有人能告诉我为什么会出现编译错误以及如何消除它吗
谢谢,
Jim看起来您需要依赖于/github:提供的
windows
cookbook
尝试将以下内容添加到烹饪书的元数据.rb
depends 'windows'