如何use/implement这个厨师食谱?
How to use/implement this Chef recipe?
我对 Chef 很陌生,但我正在尝试使用这个 Chef 食谱:
https://gist.github.com/kardeiz/7273938
我认为我需要创建一个新的食谱并将食谱放入 default.rb,并将 .erb 放入 templates/default,但是当我尝试使用食谱时("dcpromote") 在 chef-client 中,我收到一个错误:
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'
谁能告诉我为什么会出现编译错误以及如何消除它?
谢谢,
吉姆
看来您需要依赖 https://supermarket.chef.io/cookbooks/windows / github: https://github.com/opscode-cookbooks/windows 的 windows
食谱。
尝试将以下内容添加到您的食谱 metadata.rb
depends 'windows'
我对 Chef 很陌生,但我正在尝试使用这个 Chef 食谱:
https://gist.github.com/kardeiz/7273938
我认为我需要创建一个新的食谱并将食谱放入 default.rb,并将 .erb 放入 templates/default,但是当我尝试使用食谱时("dcpromote") 在 chef-client 中,我收到一个错误:
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'
谁能告诉我为什么会出现编译错误以及如何消除它?
谢谢, 吉姆
看来您需要依赖 https://supermarket.chef.io/cookbooks/windows / github: https://github.com/opscode-cookbooks/windows 的 windows
食谱。
尝试将以下内容添加到您的食谱 metadata.rb
depends 'windows'