On Thu, Jan 31, 2013 at 05:58:55AM -0800, jcbollinger wrote:
>
>
> On Thursday, January 31, 2013 1:11:25 AM UTC-6, Kubes wrote:
> >
> > Hello,
> >
> > I am trying to set all the directroes in the tree to 775 and files to 664
> > with Puppets fie resource.
> >
> > This woks fine with native chmod: # chmod -R a=r,ug+Xw,o+X
> >
> > But if I us this in puppet all is set to 775
> >
> > file { "/etc/puppet":
> > ensure => directory,
> > recurse => true,
> > ignore => ".git",
> > owner => $puppet::params::puppet_user,
> > group => $puppet::params::puppet_group,
> > mode => 'a=r,ug+Xw,o+X',
> > }
> > I have also tried mode => 'a=r,ug+X,ug+w,o+X', no luck either, same
> > result 775.
> >
> >
>
> Just use "mode=> '644'". Puppet will turn on the execute bits on the
> directories automatically.
>
>
> John
>
mode => '0644'
^
it is a good idea also write the 0 there just to make it clearer
--
Best, Nikola
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.