【问题标题】:Unable to install packages using chef无法使用厨师安装软件包
【发布时间】:2018-12-26 04:21:30
【问题描述】:
Error executing action `install` on resource 'windows_package[autologon]'
           ================================================================================

           Chef::Exceptions::CannotDetermineWindowsInstallerType
           -----------------------------------------------------
           Installer type for Windows Package 'autologon' not specified and cannot be determined from file extension 'exe'

           Resource Declaration:
           ---------------------
           # In C:/Users/kitchen/AppData/Local/Temp/kitchen/cache/cookbooks/rclient/recipes/windows.rb

            26: windows_package 'autologon' do
            27:   source "#{node['rclient']['remote_root_url']}/autologon/3.10/Autologon.exe"
            28: end
            29:

IEDriverServer.exe 和 msys2-x86_64-20161025.exe 软件包也存在同样的问题。

【问题讨论】:

    标签: windows chef-infra


    【解决方案1】:

    有关信息,请参阅https://docs.chef.io/resource_windows_package.html。你几乎肯定需要指定:installer_type

    https://github.com/chef/chef/blob/master/lib/chef/provider/package/windows.rb#L91 是产生您看到的错误的方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多