maestrodev/wget + owner + group + mode

43 views
Skip to first unread message

Vicente Zepeda

unread,
Mar 10, 2016, 2:11:51 PM3/10/16
to Puppet Users
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.









Kenton Brede

unread,
Mar 10, 2016, 2:18:10 PM3/10/16
to puppet...@googlegroups.com
You change the "mode" to the permissions you want.  What perms do you want?
Kent

Kenton Brede





--
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/f862a2bc-932e-4134-9087-dd03dcb3f79b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages