Hello, I’m creating some recipes to install packages automatically and
I’m receiving a very odd behaviour.
In this example i have this simple recipe:
windows_package ‘7-Zip’ do
source "http://chefserver.net:8080/installers/7z922-x64.msi"
action :install
end
When chef-client is executed in the source path of the msi is appended c:…
source “C:\http:\chefserver.net:8080\installers\7z922-x64.msi”
And this only happens in windows server 2008R2 in Server 2012 works fine…
And in the chef-client i get this…
Chef::Exceptions::Package
msi_open_package: unexpected status 1619: This installation package
could not be opened. Verify that the package exists
and that you can access it, or contact the application vendor to
verify that this is a valid Windows Installer package.
Resource Declaration:
In c:/chef/cache/cookbooks/test/recipes/7zip.rb
10: windows_package ‘7-Zip’ do
11: source 'http://chefserver.net:8080/installers/7z922-x64.msi’
12: action :install
13: end
Compiled Resource:
Declared in c:/chef/cache/cookbooks/test/recipes/7zip.rb:10:in `from_file’
windows_package(“7-Zip”) do
provider Chef::Provider::Windows
action [:install]
retries 0
retry_delay 2
guard_interpreter :default
package_name "7-Zip"
source "C:\http:\chefserver.net:8080\installers\7z922-x64.msi"
timeout 600
returns [0]
cookbook_name "test"
recipe_name "7zip"
end
Is this normal in Windows? Im trying to figure which management tool
is better for my windows data center…
Cheers!
Hi Carlos,
I think you might need to use single quotes rather than double quotes:
’ blah’ rather than "blah"
I think this is because you haven’t escape the “string” so it’s interpreting it oddly.
Try and let us know how you get on.
Thanks
Chris
-----Original Message-----
From: Carlos Camacho [mailto:carlos.camacho@frontiersin.org]
Sent: 28 May 2014 09:21
To: chef@lists.opscode.com
Subject: [chef] windows_package source problems in windows 2008 and not in 2012
Hello, I’m creating some recipes to install packages automatically and I’m receiving a very odd behaviour.
In this example i have this simple recipe:
windows_package ‘7-Zip’ do
source "http://chefserver.net:8080/installers/7z922-x64.msi"
action :install
end
When chef-client is executed in the source path of the msi is appended c:…
source “C:\http:\chefserver.net:8080\installers\7z922-x64.msi”
And this only happens in windows server 2008R2 in Server 2012 works fine…
And in the chef-client i get this…
Chef::Exceptions::Package
msi_open_package: unexpected status 1619: This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
Resource Declaration:
In c:/chef/cache/cookbooks/test/recipes/7zip.rb
10: windows_package ‘7-Zip’ do
11: source 'http://chefserver.net:8080/installers/7z922-x64.msi’
12: action :install
13: end
Compiled Resource:
Declared in c:/chef/cache/cookbooks/test/recipes/7zip.rb:10:in `from_file’
windows_package(“7-Zip”) do
provider Chef::Provider::Windows
action [:install]
retries 0
retry_delay 2
guard_interpreter :default
package_name "7-Zip"
source "C:\http:\chefserver.net:8080\installers\7z922-x64.msi"
timeout 600
returns [0]
cookbook_name "test"
recipe_name "7zip"
end
Is this normal in Windows? Im trying to figure which management tool is better for my windows data center…
Cheers!
The windows package resource doesn’t support directly downloading and installing a package. You need to download the file with something like remote_file then install it.
--
Daniel DeLeo
On Wednesday, May 28, 2014 at 1:20 AM, Carlos Camacho wrote:
Hello, I'm creating some recipes to install packages automatically and
I'm receiving a very odd behaviour.
In this example i have this simple recipe:
windows_package '7-Zip' do
source "http://chefserver.net:8080/installers/7z922-x64.msi"
action :install
end
When chef-client is executed in the source path of the msi is appended c:..
source "C:\http:\chefserver.net:8080 (http://chefserver.net:8080)\installers\7z922-x64.msi"
And this only happens in windows server 2008R2 in Server 2012 works fine...
And in the chef-client i get this..
Chef::Exceptions::Package
msi_open_package: unexpected status 1619: This installation package
could not be opened. Verify that the package exists
and that you can access it, or contact the application vendor to
verify that this is a valid Windows Installer package.
Resource Declaration:
In c:/chef/cache/cookbooks/test/recipes/7zip.rb
10: windows_package '7-Zip' do
11: source 'http://chefserver.net:8080/installers/7z922-x64.msi'
12: action :install
13: end
Compiled Resource:
Declared in c:/chef/cache/cookbooks/test/recipes/7zip.rb:10:in `from_file'
windows_package("7-Zip") do
provider Chef::Provider::Windows
action [:install]
retries 0
retry_delay 2
guard_interpreter :default
package_name "7-Zip"
source "C:\http:\chefserver.net:8080 (http://chefserver.net:8080)\installers\7z922-x64.msi"
timeout 600
returns [0]
cookbook_name "test"
recipe_name "7zip"
end
Is this normal in Windows? Im trying to figure which management tool
is better for my windows data center..
Cheers!