在Windows程序包资源中的cookbook -installer_type显示错误

0 cookbook chef-infra

在菜谱中执行此包资源时,它显示以下错误:

windows_package 'PuTTY version 0.60' do
  source 'http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe'  
  installer_type :inno
  action :install
end
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

FATAL: Chef::Exceptions::ValidationFailed: Option installer_type must be a kind of [String]!  You passed :inno.
Run Code Online (Sandbox Code Playgroud)

我也尝试过:msi,:custom,同样的错误.对于exe文件,我们:inno只需要类型.

小智 5

看起来你正在使用windows_package内置的最新版Chef .

不幸的是,它不支持"msi"以外的类型(是的,它现在是一个字符串)

如果您想安装Inno软件包,请依赖于cookbook元数据中的"windows"cookbook,该cookbook的windows_package提供者将覆盖开箱即用的软件包,从而允许您安装其他软件包.