【问题标题】:windows_package resource is demanding the source parameterwindows_package 资源要求 source 参数
【发布时间】:2016-09-07 07:37:27
【问题描述】:

根据chef doc,源参数是可选的,并且:

...如果没有指定源属性,包名必须是 和显示名一模一样...

我在添加删除程序和注册表中确认包是正确的(包括案例),并在我的食谱中这样做:

windows_package 'My Package Name' do
  action :remove
end

但它会引发此错误:

    ================================================================================
Error executing action `remove` on resource 'windows_package[My Package Name]'
           ================================================================================

Chef::Exceptions::ValidationFailed
----------------------------------
source is required

来源是必需的?不,这不对!是文档错误还是我只是愚蠢?

【问题讨论】:

    标签: windows windows-installer chef-infra chef-recipe cookbook


    【解决方案1】:

    已知问题,可以关注https://github.com/chef/chef/issues/5274

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-12
      相关资源
      最近更新 更多