[chef] Re: Installing MSI's with Chef


Chronological Thread 
  • From: Aditya Karanjkar < >
  • To:
  • Subject: [chef] Re: Installing MSI's with Chef
  • Date: Mon, 30 Jun 2014 15:15:22 -0700

Hi Kenneth,

By what I understand, the resource that is provided by the windows cookbook will be used if you include the cookbook as a dependency in the metadata.rb file. So for e.g in metadata.rb, include the following line:

depends 'windows'

Also as the package that you want to install is a MSI, you should be specifying the installer_type as :msi:

windows_package 'ActivePerl 5.16.3 Build 1604' do
  source "c:\\temp\\ActivePerl-5.16.3.1604-MSWin32-x64-298023.msi"
  options '/q /lvx* c:\temp\activeperl.log'
  installer_type :msi
  action :install
end

Hope this helps.

-Aditya


On Mon, Jun 30, 2014 at 11:47 AM, Kenneth Barry < " target="_blank"> > wrote:
I'm unsure if I am using it correctly. 

When the install is done manually, it take a very very very long time.

Here is my recipe section:

...
windows_package 'ActivePerl 5.16.3 Build 1604' do
  source "c:\\temp\\ActivePerl-5.16.3.1604-MSWin32-x64-298023.msi"
  options '/q /lvx* c:\temp\activeperl.log'
  installer_type :custom
  action :install
end
...

Here is the output from chef-client

[2014-06-30T13:22:30-05:00] INFO: Processing windows_package[ActivePerl 5.16.3 Build 1604] action i
nstall (nonwebserver::taskanalytics line 150)
[2014-06-30T13:22:30-05:00] INFO: Installing windows_package[ActivePerl 5.16.3 Build 1604] version
latest
[2014-06-30T13:22:30-05:00] INFO: Starting installation...this could take awhile.

I think it might be hanging.  (get-process on the box thats being cheffed doesnt show msiexec, as i am expecting)

I wanna start at the beginning, and just make sure that I am even using the resource properly. How do I know if I am using the windows_package from the cookbook over the one thats baked in to the core?





Archive powered by MHonArc 2.6.16.

§