无法在chef中使用windows\u软件包。安装程序类型已损坏

无法在chef中使用windows\u软件包。安装程序类型已损坏,windows,chef-infra,Windows,Chef Infra,无论我通过什么,它都会对我大喊大叫,因为这个论点在某种形式上是无效的 Unable to find a Chef::Provider::Package::Windows provider for installer_type ':msi' Option installer_type must be a kind of [String]! You passed :msi. Unable to find a Chef::Provider::Package::Windows provider for

无论我通过什么,它都会对我大喊大叫,因为这个论点在某种形式上是无效的

Unable to find a Chef::Provider::Package::Windows provider for installer_type ':msi'
Option installer_type must be a kind of [String]!  You passed :msi.
Unable to find a Chef::Provider::Package::Windows provider for installer_type 'msi'
也许我对声明的其余部分做了些错事。以下是厨师翻译的内容:

 windows_package("Some Software") do
  provider Chef::Provider::Package::Windows
  action [:remove]
  retries 0
  retry_delay 2
  guard_interpreter :default
  package_name "Some Software"
  source "C:\\Some Software"
  installer_type "msi"
  timeout 600
  returns [0]
  cookbook_name "Some-Cookbook"
  recipe_name "default"
end

最近才将
windows\u软件包
提供程序添加到Chef core中。如果您使用的是较旧版本的Chef客户端,则需要添加对的依赖项。

我使用的是最新版本,我相信您是否尝试过使用windows cookbook?也有可能你也发现了一个bug:)我现在一定在做一些愚蠢的事情,但我仍然有问题:
include_recipe windows::default package“Somepackage”do action:remove end
这会抛出“声明windows资源时必须提供名称”使用
windows_package
,不是
package
我都做了,结果一样。我确实安装了windows软件包:P