我是Chef的新手,但我正在尝试使用这个Chef食谱:
https://gist.github.com/kardeiz/7273938
我认为我需要创建一个新的食谱并将配方放入default.rb,将.erb放入templates / default,但是当我尝试使用cookbook(" dcpromote")时厨师 - 客户,我收到一个错误:
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'
有谁能告诉我为什么我会收到编译错误以及如何消除它?
谢谢, 吉姆
答案 0 :(得分:2)
您似乎需要依赖https://supermarket.chef.io/cookbooks/windows / github https://github.com/opscode-cookbooks/windows中的windows
食谱。
尝试将以下内容添加到您的食谱metadata.rb
depends 'windows'