Open smerrill opened 10 years ago
I was able to make this work for .zip values of kibana::install_url by changing lines 77-80 to the following:
if $kibana::install_url {
$managed_install_url = $kibana::install_url
$download_file_name = url_parse($kibana::install_url,'filename')
$extracted_dir = url_parse($download_file_name,'filedir')
Keeping track of changing upstream urls is a big pain :-I If you have a working fix a PR is welcomed
Hi Alessandro. Same problem here. Your module download in: /var/tmp/archivename and try to extract: /var/tmp/archivename.zip
the @smerrill patch is working very good here.
PR with the fix welcomed
If you set kibana::install_url to "https://download.elasticsearch.org/kibana/kibana/kibana-3.0.0milestone4.zip", you get the following error:
This is because the file is downloaded to
/var/tmp/kibana-3.0.0milestone4
and not/var/tmp/kibana-3.0.0milestone4.zip
.You get a different error with the .tar.gz file since the puppi parse_url() function has trouble with double file extension.