Install windows application with chef windows-package -
i trying install package on windows 7 machine using chef's "windows-master" cookbook: https://github.com/opscode-cookbooks/windows. first thing did grab install firefox example , try , run in environment. i'm getting error when run chef-client:
starting chef client, version 11.12.4 [2014-05-16t15:15:50-04:00] info: *** chef 11.12.4 *** [2014-05-16t15:15:50-04:00] info: chef-client pid: 1528 [2014-05-16t15:16:03-04:00] info: run list [role[windowsuserdesktop]] [2014-05-16t15:16:03-04:00] info: run list expands [adminuseraccounts::monito r_user, windows7x32desktop::installfirefox] [2014-05-16t15:16:03-04:00] info: starting chef run windows7node [2014-05-16t15:16:03-04:00] info: running start handlers [2014-05-16t15:16:03-04:00] info: start handlers complete. resolving cookbooks run list: ["adminuseraccounts::monitor_user", "windows7x 32desktop::installfirefox"] [2014-05-16t15:16:04-04:00] info: loading cookbooks [adminuseraccounts@0.1.4, wi ndows7x32desktop@0.1.7, windows-master@1.31.1, chef_handler@1.1.7] synchronizing cookbooks: - adminuseraccounts [2014-05-16t15:16:04-04:00] info: storing updated cookbooks/windows7x32desktop/r ecipes/installfirefox.rb in cache. - windows7x32desktop - windows-master - chef_handler compiling cookbooks... ================================================================================ recipe compile error in c:/chef/cache/cookbooks/windows7x32desktop/recipes/insta llfirefox.rb ================================================================================ chef::exceptions::validationfailed ---------------------------------- option installer_type must kind of [string]! passed :custom. cookbook trace: --------------- c:/chef/cache/cookbooks/windows7x32desktop/recipes/installfirefox.rb:20:in `bl ock in from_file' c:/chef/cache/cookbooks/windows7x32desktop/recipes/installfirefox.rb:16:in `fr om_file' relevant file content: ---------------------- c:/chef/cache/cookbooks/windows7x32desktop/recipes/installfirefox.rb: 13: # action :create_if_missing 14: #end 15: 16: windows_package 'mozilla_firefox30' 17: action :install 18: source 'https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/30.0b1/ win32/en-us/firefox%20setup%20stub%2030.0b1.exe' 19: options '-ms' 20>> installer_type :custom 21: end 22: 23: 24: 25: running handlers: [2014-05-16t15:16:04-04:00] error: running exception handlers running handlers complete [2014-05-16t15:16:04-04:00] error: exception handlers complete [2014-05-16t15:16:04-04:00] fatal: stacktrace dumped c:/chef/cache/chef-stack trace.out chef client failed. 0 resources updated in 19.84961 seconds [2014-05-16t15:16:04-04:00] info: sending resource update report (run-id: 5c1b1d 60-dbf6-4f95-af8f-4a979244aee8) [2014-05-16t15:16:04-04:00] fatal: chef::exceptions::validationfailed: option in staller_type must kind of [string]! passed :custom.
i'm little confused considering copied , pasted example, besides url changed reflect version of firefox date.
i took @ package.rb resource in version of windows-master downloaded , "installer_type" attribute not looking "string" type. here reference.
actions :install, :remove default_action :install attribute :package_name, :kind_of => string, :name_attribute => true attribute :source, :kind_of => string, :required => true attribute :version, :kind_of => string attribute :options, :kind_of => string attribute :installer_type, :kind_of => symbol, :default => nil, :equal_to => [:msi, :inno, :nsis, :wise, :installshield, :custom] attribute :checksum, :kind_of => string attribute :timeout, :kind_of => integer, :default => 600 attribute :success_codes, :kind_of => array, :default => [0, 42, 127] # todo # add preseeding support #attribute :response_file # allow target dirtory of installation set #attribute :target_dir # covers 0.10.8 , earlier def initialize(*args) super @action = :install end
any appreciated.
Comments
Post a Comment