-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What exactly are you trying to do?

If this is a Linux system, I would use Puppet to set up some Inotify
functionality using something like fsniper:
http://projects.l3ib.org/trac/fsniper

Trevor

On 07/24/2009 09:09 PM, grandpa wrote:
> Hi.
> 
> I'm VERY new to puppet (had quite a bit of fun for a few days!).
> 
> I'm trying to set up a variable amount of watch dirs - i.e when
> something happens execute a command.
> 
> I've defined watch::config ( $command, $paths, $watchType="recursive",
> $events="default" ) - the specifics aren't that
> important.
> 
> This has been working ok with $paths just being $path. Now that I've
> switched to an array of paths,
> I'm having some trouble ensuring that all paths exist (if they don't
> the watch fails). I'm unsure how to
> got about this...
> 
> With one path I could easily ensure it's existence, but with a
> variable amount I just don't know. There
> are, afaik, no looping in puppet (except for erb but that won't do
> it). Perhaps I'm going about this the wrong way...
> 
> Any tips?
> 
> > 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkprp7UACgkQyjMdFR1108CkxwCgtOmiqnUJEUu8HGf4SJOr+tQz
DGQAoJLa+WQTUfZL4maSE0WhE1dBd8+t
=T/m5
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to