Basic question

40 views
Skip to first unread message

warron.french

unread,
Jul 20, 2016, 8:11:22 PM7/20/16
to puppet...@googlegroups.com

Is it possible to extract a tarball using the puppet module, and then set the permission of all the directory after that?

Would one select a provider and then provide the tarball filename as the argument somehow?

\\Warron French from mobile

Rob Nelson

unread,
Jul 21, 2016, 7:41:49 AM7/21/16
to puppet...@googlegroups.com
I am not intimately familiar with them, but I think the modules puppet/archive or puppet/staging will do what you want.
--
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/CAJdJdQm8h_NaqqodD8-3%3D%2BA713EVrRYm%2Bh4B5MVpW36V35jyzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

Russell Anderson

unread,
Jul 21, 2016, 8:27:08 AM7/21/16
to Puppet Users
You could probably use a combination of "file {}" to place the tarball on the target node, and "exec {}" to unpack it and set permissions, using the "creates" parameter.

Stig Sandbeck Mathisen

unread,
Jul 21, 2016, 8:45:10 AM7/21/16
to puppet...@googlegroups.com
"warron.french" <warron...@gmail.com> writes:

> Is it possible to extract a tarball using the puppet module, and then
> set the permission of all the directory after that?
>
> Would one select a provider and then provide the tarball filename as the
> argument somehow?

The puppet/archive module is one of several modules which can do this.
There are lots of good examples of how to use it at
https://forge.puppet.com/puppet/archive

--
Stig Sandbeck Mathisen

warron.french

unread,
Jul 22, 2016, 8:05:37 PM7/22/16
to puppet...@googlegroups.com

Thanks Rob.

\\Warron French from mobile


Warron French

unread,
Aug 3, 2016, 8:08:23 PM8/3/16
to puppet...@googlegroups.com

Thanks Russell.

--
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.

Warron French

unread,
Aug 3, 2016, 8:09:26 PM8/3/16
to puppet...@googlegroups.com
Thanks Sandbeck, that was a very useful link, once I read down towards
the bottom! I appreciate it.
Reply all
Reply to author
Forward
0 new messages