I'm using a Chef hosted server, a workstation and nodes and have run cookbooks on the nodes to install Java, update hosts file. I'm not able to find a reference in sites to unzip tar files. Could you please help me out here or direct to some site which has the information.
Thanks in advance.
You can unzip most . tar. gz and other compressed . tar files using the tar utility.
7-Zip can also be used to unpack many other formats and to create tar files (amongst others).
WinRAR handles these compression formats: RAR, ZIP, CAB, ARJ, LZH, ACE, TAR, GZip, UUE, BZ2, JAR, and ISO.
Since Chef Client 15.0 there is a archive_file
resource built-in. It supports tar, gzip, bzip, and zip.
archive_file 'Precompiled.zip' do
path '/tmp/Precompiled.zip'
destination '/srv/files'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With