Regarding my initial query, the problem was that the subdirs & files were also declared as separate resources, and hence I had to explicitly mention owner & group for each of them individually.
@Tore: Have no clue about the purge option. Did go through the docs, but not sure if I should set it or not ? If its not much to ask for, could you give me a scenario to better comprehend the purge option ? Not sure but probably purge=false is a failsafe option ? On Fri, Jul 23, 2010 at 5:22 PM, Tore <tore.lo...@gmail.com> wrote: > Arn't you missing the purge option? Be carefull, if you do something > wrong it could destroy you data. Make a test directory for this. > > > On 23 Jul, 08:07, alcy <mohit.chawla.bin...@gmail.com> wrote: > > Alright so if I have something like > > > > file {"xyz": > > > > ensure=>directory, > > mode=>644 > > owner=>"abc", > > group=>"abc", > > recurse=>true, > > > > } > > > > ...then all this does is to set the appropriate file permissions for > > the subdirectories & files under xyz, but it doesn't change the owner/ > > group of those subdirs & files. It only changes/sets the owner of the > > xyz directory only, not anything under xyz. > > > > So, currently I am resorting to doing an exec for chown -R, but that > > doesn't look like a good solution, maybe I am missing something > > fundamental here. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.