On 02/10/2013 11:09 PM, Andreas Hilboll wrote:
Hi,
I would like to install Piwik [*], which is a PHP webstatistics package,
on some of my nodes, using Puppet. The underlying servers are running
Debian Squeeze. Piwik is distributed as a .zip or .tar.gz file, which is
available at their website. They provide a constant URL always pointing
to the latest release:
http://builds.piwik.org/latest.zip
How can I download and unzip this package to a defined location on my
nodes, changing the UID/GID of the unzipped files from root to www-data?
Your help is greatly appreciated!
Although this task can be done with puppet, puppet is not designed to do
it. It simply is not deploy/installation tool. It would be best if you
could package up piwik in the OS native packages (deb). That way you
could set up exact permissions, pre/post scripts, and then use puppet's
"package" resource to install it.
If you instead try to do the whole fetch/untar/chmod with puppet, you'll
find yourself in a world of grief ...
--
Jakov Sosic
www.srce.unizg.hr
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.