On Monday, July 4, 2016 at 4:07:25 PM UTC-5, Chris Tomlin wrote:
>
> . . . . . with one type of permissions and within that same directory,
> chmod subdirectories with different permissions.
>
> I've tried to do this with find -type exec {} but it doesn't seem to work.
> And I'm new to puppet so if you could show some code, i'd appreciate it.
>
>
Perhaps you could be a little more specific about what you want to do,
especially if you want code. Until then, here are some guidelines:
- Do not manage the same physical resource via multiple Puppet
resources. In particular, make sure there are no files that are managed
via both a File and an Exec.
- Puppet knows that on Unix systems, directories modes need execute bits
to accompany read bits; it handles this for you to simplify recursive
directory management.
- File resources in general, and recursive ones in particular, work best
for relatively small total numbers of files not-huge files.
- Except with respect to (sub)directory execute permissions, if you want
to manage different files to have different permissions (/ ownership /
security context) then you need to use separate File resources or an
altogether different resource type.
- If you have a large or complex set of related files to manage, and
especially if none of them are expected to change frequently, then don't
overlook the possibility of packaging them up and managing them together
via a Package resource.
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/7f06eb0a-4981-405f-aef9-d01060a49b4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.