On Wednesday, April 16, 2014 7:06:53 AM UTC-5, Bret Wortman wrote:
>
> Is there a simple way to enforce a different mode for a directory and its 
> contents when the contents of the directory are highly variable? What I 
> mean is that I've got a case where some developers want a directory 
> "/var/log/httpd" to be protected 755 but the contents they want at 644. Is 
> there a simple, Puppet-ish way to make this happen, or are we basically 
> stuck with:
>
> file { '/var/log/httpd':
>     ensure => directory,
>     mode => '0644',
>     recurse => true,
> }
>
>

I'm missing something.  That declaration ought to do exactly what you say 
you want (Puppet will add add search permission to directories wherever 
there is read permission; see 
http://docs.puppetlabs.com/references/3.4.stable/type.html#file-attribute-mode).
  
Where do you imagine simplifying it or making it more "puppet-ish"?


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/90f5de75-6672-41a4-81b0-e95eab6354ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to