代码之家  ›  专栏  ›  技术社区  ›  srinannapa

无法使用chef安装程序包

  •  0
  • srinannapa  · 技术社区  · 6 年前
    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包也存在相同问题。

    1 回复  |  直到 6 年前
        1
  •  0
  •   David M    6 年前

    https://docs.chef.io/resource_windows_package.html 供参考。你几乎肯定需要具体说明 :installer_type .

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

    推荐文章