简体   繁体   中英

chef: installing a package on windows

I am trying chef on windows for the first time. here is basic simple install for notepad++:

windows_package 'notepad' do  
  source 'c:/temp/npp.exe'  
  action :install  
end  

It is giving error while running chef-client.

Installer type for Windows Package 'notepad' not specified and cannot be determined from file extension 'exe'

Not sure what is missing.

Chef tries to autodetect the type of installer but it has failed in this case so you'll need to manually specify an installer_type property. See https://docs.chef.io/resource_windows_package.html#examples for some examples, or further up that page for details on installer_type .

只是为了更新,问题是由于服务器上安装了较旧的Chef-Client,升级客户端后即可解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM