无法使用 Chef 安装 JDK
unable to install JDK using chef
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'**
:custom
安装程序类型仅在 12.6 中添加到 Chef 的核心中。在此之前,您需要包含 windows
食谱。
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'**
:custom
安装程序类型仅在 12.6 中添加到 Chef 的核心中。在此之前,您需要包含 windows
食谱。