You change the "mode" to the permissions you want.  What perms do you want?
Kent

Kenton Brede





On Thu, Mar 10, 2016 at 1:01 PM, Vicente Zepeda <[email protected]>
wrote:

> Hello, I'm new to puppet, I'm using maestrodev/wget to get some file to a
> folder I created.
>
>     file { $_some_path:
>       ensure  => directory,
>       owner   => $_some_owner,
>       group   => $_some_group,
>       mode    => '0644'
>     }
>
>
> After I generate the directory y do this
>
>     wget::fetch {"${source}/file.txt":
>       destination => "${_some_path}/",
>       user        => "${source_user}",
>       password    => "${source_password}",
>       timeout     => 0,
>       verbose     => false,
>     }
>
> When I go to see the permissions on the files I have this
>
> drwxr-xr-x 2 user1 user1 4096 Mar 10 18:44 .
> drwxr-xr-x 3 user1 user1 4096 Mar 10 18:44 ..
> -rw-r--r-- 1 root  root 4562 Mar 10 17:15 file.txt
>
> Does anyone know how to set the right permission to the downloaded file.
>
> Thanks.
>
>
>
>
>
>
>
>
>
> --
> 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/f862a2bc-932e-4134-9087-dd03dcb3f79b%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/f862a2bc-932e-4134-9087-dd03dcb3f79b%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/CA%2BnSE38HLxV0NoVN2pvwMmZuA%3DAbqRuGjdpBM3WKkw%3Dwec4mdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to