Andreas Hilboll
2013-Feb-10 22:09 UTC
[Puppet Users] Download and unzip to install a webapp
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! Cheers, Andreas. [*] http://piwik.org/ -- 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+unsubscribe@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.
Jakov Sosic
2013-Feb-10 22:18 UTC
Re: [Puppet Users] Download and unzip to install a webapp
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+unsubscribe@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.
Brendan O''Bra
2013-Feb-11 02:04 UTC
Re: [Puppet Users] Download and unzip to install a webapp
+1 for packaging natively (deb, rpm, etc) and using the Puppet "package" resource to deliver/install it. Life will be much better this way ;) On Sun, Feb 10, 2013 at 2:18 PM, Jakov Sosic <jsosic@srce.hr> wrote:> 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<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+unsubscribe@**googlegroups.com<puppet-users%2Bunsubscribe@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<http://groups.google.com/group/puppet-users?hl=en> > . > For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > >-- GVoice: 707.410.0371 LinkedIn: http://www.linkedin.com/in/brendanobra -- 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+unsubscribe@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.
Nikola Petrov
2013-Feb-11 08:08 UTC
Re: [Puppet Users] Download and unzip to install a webapp
I can advice you to use fmp[1] for this and build a native debian package for your distribution. The tool also supports rpm with the same configuration almost all the time(at least for me). I think that with fpm, you shouldn''t *ever* use a zip again. I have a bunch of Makefiles that build my packages and the life is so much better this way. If you prefer other build systems you can use them too ofc. Best, Nikola [1] https://github.com/jordansissel/fpm/wiki On Sun, Feb 10, 2013 at 11:09:10PM +0100, 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! > > Cheers, Andreas. > > > > [*] http://piwik.org/ > > -- > 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+unsubscribe@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. > >-- 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+unsubscribe@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.