If I''m pushing out a bunch of files in a directory, like this... file { "/usr/local/lg/bin/": source => "puppet://${server}/usr/local/lg/bin", mode => 755, owner => "root", group => "root", recurse => true, ignore => ".svn"; } This sets both the directory _and_ file perms to 755. How can I see the directory to 755, and the files beneath it to something else (I want the files to be 700) ? Doug. -- 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.
On Dec 7, 2010, at 11:52 AM, Douglas Garstang wrote:> If I''m pushing out a bunch of files in a directory, like this... > > file { > "/usr/local/lg/bin/": > source => "puppet://${server}/usr/local/lg/bin", > mode => 755, > owner => "root", > group => "root", > recurse => true, > ignore => ".svn"; > }For better or worse, Puppet will automatically set the execute bit on a directory if the read bit is set, so you can just define the mode as "644" and it will work. For example, if you define it as 604, puppet will change it to, 705. This might only apply to directories with "recurse => true", I haven''t ever tested it. -- 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.
On 12/07/2010 08:52 PM, Douglas Garstang wrote:> If I''m pushing out a bunch of files in a directory, like this... > > file { > "/usr/local/lg/bin/": > source => "puppet://${server}/usr/local/lg/bin", > mode => 755, > owner => "root", > group => "root", > recurse => true, > ignore => ".svn"; > } > > This sets both the directory _and_ file perms to 755. How can I see the > directory to 755, and the files beneath it to something else (I want the > files to be 700) ?If you manage the tree recursively, pick one mode. Having the root dir 755 and all others 700 is not going to be possible any time soon, I wager. Regards, Felix -- 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.