Exec resources are executed on the agent. Functions are executed on master.
So you first need a function that does the processing of the original zip
and copies the new file to some module, from where you can retrieve it with
the file resource.

cristi


On Tue, Jun 24, 2014 at 12:16 PM, Malintha Adikari <[email protected]>
wrote:

> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/fa17081c-1b25-4a0d-8b3d-236208caba9f%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/fa17081c-1b25-4a0d-8b3d-236208caba9f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMo7R_cxbvg%3D6i%3DV23nCGNUz1WGoumaGyxz6h4Fi9Eodh_s65w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to