Jon Stanley
2009-Feb-17 00:13 UTC
[Puppet Users] Question on recursively managing permissions
I''ve got a directory (a webapps directory for a Java app server) that
I''d like to ensure all of the contents are world readable. As puppet
is not really suitable for application deployment, I''d like to manage
the permissions of this directory and all of it''s contents. Something
like:
find . -type d -exec chmod 755 \{\}
find . -type f -exec chmod 644 \{\}
Is there an easy way to accomplish this in puppet, or am I barking up
the wrong tree?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Jason Rojas
2009-Feb-17 05:06 UTC
[Puppet Users] Re: Question on recursively managing permissions
file {
"/top/level/dir":
owner => user,
group => usergroup,
ensure => directory,
mode => "0664", #whatever
recurse => true;
}
something like that may work
If that doesn''t then you should be able to use an exec of your find
commands and onlyif mtime/md5 of the dir tree but that may take a
while.
I''m not near a computer so I can''t personally test either of
these.
-Jason
On Feb 16, 2009, at 4:13 PM, Jon Stanley <jonstanley@gmail.com> wrote:
>
> I''ve got a directory (a webapps directory for a Java app server)
that
> I''d like to ensure all of the contents are world readable. As
puppet
> is not really suitable for application deployment, I''d like to
manage
> the permissions of this directory and all of it''s contents.
Something
> like:
>
> find . -type d -exec chmod 755 \{\}
> find . -type f -exec chmod 644 \{\}
>
> Is there an easy way to accomplish this in puppet, or am I barking up
> the wrong tree?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---