On Sep 2, 2014 5:43 AM, "Balasubramaniam Natarajan" <bala1...@gmail.com> wrote:
>
> Hi
>
> I have a query regarding how recurse behaves when we call it with "ensure => file"[1] compared with "ensure => directory"[2] ?
>
> Would it make any sense to call recurse with "ensure => file" ?
No, recurse is only useful for copying directory to directory.
What are you going to accomplish? Copying a source directory of symlinks as their targets? If so, there's a separate parameter for that.
Wil
> [1]
> file {'/home/bala':
> ensure=> file,
> source => "puppet:///files/home/bala/",
> sourceselect => "all",
> recurse => true,
> }
>
> [2]
> file {'/home/bala':
> ensure=> directory,
> source => "puppet:///files/home/bala/",
> sourceselect => "all",
> recurse => true,
> }
>
>
>
> --
> Regards,
> Balasubramaniam Natarajan
> http://blog.etutorshop.com
>
> --
> 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 puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAFHFDA%3D%3DHjSUdCttzWBizMnaJrNgyR_wM4Ga8NEUZoVgTPE5DA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
No, recurse is only useful for copying directory to directory.
What are you going to accomplish? Copying a source directory of symlinks as their targets? If so, there's a separate parameter for that.
Wil
On Tue, Sep 2, 2014 at 10:08 PM, Wil Cooley <wco...@nakedape.cc> wrote:I have a separate UMASK defined.
No, recurse is only useful for copying directory to directory.
What are you going to accomplish? Copying a source directory of symlinks as their targets? If so, there's a separate parameter for that.
Wil
If I follow [2] puppet changes all the directory permission under /home/bala/ even if they are not included under puppet:///files/home/bala/ to be synced (i.e /home/bala/Documents /home/bala/Downloads /home/bala/Desktop) gets their permission changed.
If I go with [1] it affects the permission only to the directory which are getting synced off puppet:///files/home/bala/ (i.e /home/bala /home/bala/cow /home/bala/cat /home/bala/tiger).
My ideal goal is to have something like [3] where the permission get enforced only on the directory and subdirectories over-riding the UMASK which I have set previously. The enforced permission should not get applied on the files which are getting synced (i.e /home/bala/temp.txt). Currently when I follow [3] it changed the permission of /home/bala/temp.txt to 755 as well.