【问题标题】:unable to install JDK using chef无法使用 Chef 安装 JDK
【发布时间】:2016-02-25 22:32:46
【问题描述】:
windows_package 'JDK' do
  source 'http://tvmatp236702d:8081/nexus/content/repositories/CSDP/jdk/windows/jdk_windows/1.0.0/jdk_windows-1.0.0.exe'
  options '-ms'
  installer_type :custom
  action :install
end

在运行上述配方时,jdk 正在下载,但安装时出现此错误:

**RuntimeError:
Unable to find a Chef::Provider::Package::Windows provider for installer_type 'custom'**

【问题讨论】:

  • 您使用的是哪个版本的厨师? (你的 .exe 文件是不是内部的 MSI 文件?)

标签: chef-infra chef-recipe


【解决方案1】:

:custom 安装程序类型仅在 12.6 中添加到 Chef 的核心。在此之前,您需要包含 windows 食谱。

【讨论】:

    猜你喜欢
    • 2015-10-28
    • 1970-01-01
    • 2014-03-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-14
    相关资源
    最近更新 更多