Hi,
I keep archive files in my puppet master side. I want to unzip the archive to master's location and do some file replacements and again zip it and then copy it to the agent side. I use following code snippet to unzip it. How can I give an own location (master side location) here ?
exec { "unzip":
command => 'unzip wso2esb-4.8.1.zip',
cwd => "/home/malintha/",
path => $command_path,
logoutput => true,
timeout => 3600,
require => File['/home/agent2/adikari11/wso2esb-4.8.1.zip'],
}
here "cwd" means the destination. But this is the agent side destination.I want to set it to master side location
Regards,
Malintha Adikari