厨师超市IIS食谱

时间:2018-12-05 08:04:20

标签: iis chef

我有一个Windows 2016 Vagrant框,已将其配置为本地Chef开发和测试。我下载了IIS食谱,提取了内容并尝试在像这样的配方下运行default.rb-

chef-client -z iis-master/recipe/default.rb(下面是我得到的输出)

Starting Chef Client, version 14.7.17
[2018-12-05T07:47:48+00:00] INFO: *** Chef 14.7.17 ***
[2018-12-05T07:47:48+00:00] INFO: Platform: x64-mingw32
[2018-12-05T07:47:48+00:00] INFO: Chef-client pid: 3840
[2018-12-05T07:47:48+00:00] INFO: The plugin path C:\chef\ohai\plugins does not exist. Skipping...
[2018-12-05T07:48:02+00:00] INFO: Setting the run_list to [#<Chef::RunList::RunListItem:0x00000000062cc670 @version=nil,
 @type=:recipe, @name="iis::default">] from CLI options
[2018-12-05T07:48:02+00:00] INFO: Run List is [recipe[iis::default]]
[2018-12-05T07:48:02+00:00] INFO: Run List expands to [iis::default]
[2018-12-05T07:48:02+00:00] INFO: Starting Chef Run for vagrant
[2018-12-05T07:48:02+00:00] INFO: Running start handlers
[2018-12-05T07:48:02+00:00] INFO: Start handlers complete.
resolving cookbooks for run list: ["iis::default"]

================================================================================
Error Resolving Cookbooks for Run List:
================================================================================

Missing Cookbooks:
------------------
No such cookbook: windows

Expanded Run List:
------------------
* iis::default

System Info:
------------
chef_version=14.7.17
platform=windows
platform_version=10.0.14393
ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-client
executable=C:/opscode/chef/bin/chef-client


Running handlers:
[2018-12-05T07:48:05+00:00] ERROR: Running exception handlers
Running handlers complete
[2018-12-05T07:48:05+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 17 seconds
[2018-12-05T07:48:05+00:00] FATAL: Stacktrace dumped to c:/users/vagrant/.chef/local-mode-cache/cache/chef-stacktrace.ou
t
[2018-12-05T07:48:05+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-12-05T07:48:05+00:00] FATAL: Net::HTTPServerException: 412 "Precondition Failed"

我的问题是-它在谈论哪个Windows食谱?我下载了整个IIS Cookbook目录,但没有编辑其中的任何内容,但似乎找不到。

谢谢。

1 个答案:

答案 0 :(得分:0)

iis食谱has a dependency on windows cookbook。 您不仅应下载iis食谱,还应以递归方式下载其所有依赖项。很高兴,您可以为此使用berkshelf