gini / puppet-archive

Puppet Module to download and extract tar.gz, tar.bz2, tar.xz, and zip archives
6 stars 22 forks source link

document usage for downloading and extracting #3

Open logicminds opened 11 years ago

logicminds commented 11 years ago

Please document the usage details for how to download and extract.

Can I use extract to pull from web? Or do I need to first download then call extract separately?

joschi commented 11 years ago

Do you think that the examples which are given in the Puppet doc of download.pp and extract.pp are sufficient if they also were in the README.md or is a more elaborate description needed?

logicminds commented 11 years ago

I would document these separately:

  1. how to download
  2. how to extract
  3. how to archive (tar, gzip, zip,...) tar -zcvf tmp.tar.gz /tmp
  4. how to download and extract all in one go.
logicminds commented 11 years ago

Essentially, I am unable to perform the following:

$package_name = 'haproxy-1.3.26-pcre-40kses-splice-linux-i586.stripped' $download_url = 'http://haproxy.1wt.eu/download/1.3/bin/haproxy-1.3.26-pcre-40kses-splice-linux-i586.stripped.gz' $extract_dir = '/opt/apps'

archive {"$package_name": ensure => present, url => "$download_url", target => "$extract_dir", checksum => false, src_target => '/tmp', root_dir => 'haproxy', }

madeddie commented 10 years ago

The file you reference is not a tarball but a gzipped binary. This module expects a packaged directory of files and it has to be either a compressed tarball or a zipfile. I guess this could be made clearer in the documentation.