First of all it isn't a great idea to use recursive if there are a lot of files/directories. Puppet does a pretty bad job on that, and it will eat your CPU. It is better to launch external program such as: rsync to perform this function. However if you only have few directories or files this is fine. It sounds like you have a permission problem.
On Thu, Mar 31, 2011 at 2:06 PM, Forrie <for...@gmail.com> wrote: > I've read a couple of bug reports via Google about problems managing > directories recursively with Puppet. Another article suggests to > create a resource that points to an empty directory on the file store, > then use file resources to populate it (which I cannot get to work). > > The common error being: > > Error 400 on SERVER: Not authorized to call search on /file_metadata/ > usr/local/my/empty-dir with > {:checksum_type=>"md5", :recurse=>true, :links=>"manage"} > > When I look at the configuration directives, and I see the usage of > "recurse => true" I assume the directory structure will be created. > Why does this not work? Some assumptions could be made on the proper > ownership of the unmanaged /sub/directory/tree/dir (upper > directories). > > What's the best way to work with this issue? > > > Thanks. > > -- > 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. > > -- 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.