- From: "
" <
>
- To: "
" <
>
- Subject: [chef] RE: windows_package source problems in windows 2008 and not in 2012
- Date: Wed, 28 May 2014 15:53:22 +0000
- Accept-language: en-GB, en-US
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:
Sent: 28 May 2014 09:21
To:
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::Package::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!
Archive powered by MHonArc 2.6.16.