0

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

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

我收到此错误:

FATAL: Chef::Exceptions::ValidationFailed: Option installer_type must be a kind of [String]!  You passed :inno.

我也试过:msi,:custom了,只有同样的错误。同样对于 exe 文件,我们:inno只需要输入。

4

1 回答 1

5

看起来您正在使用windows_package内置于其中的最新版本的 Chef。

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

如果你想安装 Inno 包,依赖于你的说明书元数据中的“windows”说明书,那个说明书的windows_package提供者将覆盖一个开箱即用的包,从而允许你安装其他包。

于 2014-06-12T04:55:59.797 回答