Re: [Puppet Users] Recursive directory copy and exec

2011-04-15 Thread Prateep Bandharangshi
Yes, of course. That would work fine. :-) I was getting carried away trying to map this to puppet resources Thanks Prateep On 15 Apr 2011, at 19:16, Mohamed Lrhazi wrote: > I would try something like: > > file { "/var/tmp/files": >ensure => "directory", >... >notify => Exec[ >

Re: [Puppet Users] Recursive directory copy and exec

2011-04-15 Thread Mohamed Lrhazi
I would try something like: file { "/var/tmp/files": ensure => "directory", ... notify => Exec[ exec { "foo": command => "echo * | xargs tar xf ", cwd => "/var/tmp/files", refreshonly => true, } On Fri, Apr 15, 2011 at 12:29 PM, Prateep wrote: > Hi all, > > Newbie questio

[Puppet Users] Recursive directory copy and exec

2011-04-15 Thread Prateep
Hi all, Newbie question here... I'm trying to figure out how to execute a command for every file in a directory. For example, I recursively copy a bunch of tar files and then I want to run a command against them My understanding is that the file resource will execute first, copying all of the f