Thanks for your solution Luke, this is much faster. For future
reference here's the modification I made (there were a couple of typos
and/or I've got a different dialect of find):

exec { "enforce ${jetty_install_dir} permissions":
  command => "/usr/bin/find ${jetty_install_dir} ! -user jetty -o ! -
group users -exec chown jetty:users {} \\;",
  onlyif  => "/usr/bin/test $(/usr/bin/find ${jetty_install_dir} ! -
user jetty -o ! -group users | wc -l) -gt 0",
}

Cheers, Robert.

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

Reply via email to