how to store the downloaded copy of the instalation file in the local system in chef?

57 Views Asked by At

I'm trying to store the copy of the installation file in the C: drive this code is working for some application but not all what are the other alternatives. this is for chef for windows server. thank you.

windows_package '7zip' do
  source 'http://www.7-zip.org/a/7z938-x64.msi'
  remote_file_attributes ({
    :path => 'C:\\7zip.msi',
    :checksum => '7c8e873991c82ad9cfc123415254ea6101e9a645e12977dcd518979e50fdedf3'
 })
end
1

There are 1 best solutions below

0
On

You answered your own question by copying directly from the Chef docs. The :path key there is the path used for the local cache file.

That said, the poise-archive cookbook directly supports 7-Zip and handles installing it for you transparently :)