Doesn't this also make the directory itself 644 instead of 755? Maybe I
need to play around with it a bit more.



*Bret Wortman*
http://about.me/wortmanbret



On Thu, Apr 17, 2014 at 9:17 AM, jcbollinger <[email protected]>wrote:

>
>
> 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 a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/YvyV72vReyc/unsubscribe.
> To unsubscribe from this group and all its topics, 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<https://groups.google.com/d/msgid/puppet-users/90f5de75-6672-41a4-81b0-e95eab6354ab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAN9oxgR7-%2BqtcOCrwRNOu%2B6AbDUHJ78rMMb9Ovqzw_A1aXU6bQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to