Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I unzip a zip file in windows using puppet script

Tags:

windows

puppet

I am new to puppet I want to unzip a zip file kept in puppet windows agent.

class ziptest {
exec {"test" :
command =>'unzip Test.zip',
cwd =>  'D:\',
path => 'D:\',
    }
}

While execution I am getting an error :

COULD NOT FIND COMMAND UNZIP
like image 756
Ankita13 Avatar asked Dec 30 '25 16:12

Ankita13


1 Answers

Theres a puppet module for windows configurations that includes an unzip type.

like image 155
Stefan Podkowinski Avatar answered Jan 01 '26 06:01

Stefan Podkowinski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!