Hello, I have two problems with file distribution: 1. A whole directory tree to copy from puppet-fileserver to a puppet- managed system, all files need the same permissions, let''s assume 640. The problem is that if I''ll use recursive, and set 640, then the same will apply to directories - which is useless, as even the owner will not be able to browse through dirs. How to solve that? Some special function or sth? 2. A single directory with 10s of files, which all need to be copied, but only a handsome need to be executable (+x). How to do this? Regards, Stanislaw --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Stasheck schrieb:> Hello, > I have two problems with file distribution: > > 1. A whole directory tree to copy from puppet-fileserver to a puppet- > managed system, all files need the same permissions, let''s assume 640. > The problem is that if I''ll use recursive, and set 640, then the same > will apply to directories - which is useless, as even the owner will > not be able to browse through dirs. How to solve that? Some special > function or sth?On recurse=>true, directories automatically get appropriate x bits set.> 2. A single directory with 10s of files, which all need to be copied, > but only a handsome need to be executable (+x). How to do this?Specify the handsome files who need +x separately, with the right rights. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
One quick minor warning: If this directory tree is large, do NOT use puppet to manage it. Puppet is VERY slow at recursively setting file permissions/attributes, and you''d be better off just using exec { "chmod -R 755"} or something. On Wed, Jun 4, 2008 at 10:40 AM, David Schmitt <david@schmitt.edv-bus.at> wrote:> > Stasheck schrieb: > > Hello, > > I have two problems with file distribution: > > > > 1. A whole directory tree to copy from puppet-fileserver to a puppet- > > managed system, all files need the same permissions, let''s assume 640. > > The problem is that if I''ll use recursive, and set 640, then the same > > will apply to directories - which is useless, as even the owner will > > not be able to browse through dirs. How to solve that? Some special > > function or sth? > > On recurse=>true, directories automatically get appropriate x bits set. > > > 2. A single directory with 10s of files, which all need to be copied, > > but only a handsome need to be executable (+x). How to do this? > > Specify the handsome files who need +x separately, with the right rights. > > > > Regards, DavidS > > > >--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you for your answers. That should solve it. regards, Stanislaw On Jun 4, 5:58 pm, "Ashley Penney" <apen...@gmail.com> wrote:> One quick minor warning: If this directory tree is large, do NOT use puppet > to manage it. Puppet is VERY slow at recursively setting file > permissions/attributes, and you''d be better off just using exec { "chmod -R > 755"} or something. > > On Wed, Jun 4, 2008 at 10:40 AM, David Schmitt <da...@schmitt.edv-bus.at> > wrote: > > > > > Stasheck schrieb: > > > Hello, > > > I have two problems with file distribution: > > > > 1. A whole directory tree to copy from puppet-fileserver to a puppet- > > > managed system, all files need the same permissions, let''s assume 640. > > > The problem is that if I''ll use recursive, and set 640, then the same > > > will apply to directories - which is useless, as even the owner will > > > not be able to browse through dirs. How to solve that? Some special > > > function or sth? > > > On recurse=>true, directories automatically get appropriate x bits set. > > > > 2. A single directory with 10s of files, which all need to be copied, > > > but only a handsome need to be executable (+x). How to do this? > > > Specify the handsome files who need +x separately, with the right rights. > > > Regards, DavidS--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---