Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when install prometheus and alertmanager #23

Closed
osmufe opened this issue Oct 20, 2016 · 1 comment
Closed

Issue when install prometheus and alertmanager #23

osmufe opened this issue Oct 20, 2016 · 1 comment

Comments

@osmufe
Copy link

osmufe commented Oct 20, 2016

Hi,

When I install the prometheus and alertmanagers fails because de download url needs a diferent path:

Example puppet output :
err: /Stage[main]/Prometheus::Alert_manager::Install/Staging::File[alert_manager-0.5.0-alpha.0.tar.gz]/Exec[/opt/staging/prometheus/alert_manager-0.5.0-alpha.0.tar.gz]/returns: change from notrun to 0 failed: curl -f -L -o /opt/staging/prometheus/alert_manager-0.5.0-alpha.0.tar.gz https://github.com/prometheus/alertmanager/releases/download/0.5.0-alpha.0/alertmanager-0.5.0-alpha.0.linux-amd64.tar.gz returned 22 instead of one of [0]

  • Current line on init.pp & alertmanager.pp
    $real_download_url = pick($download_url, "${download_url_base}/download/${version}/${package_name}-${version}.${os}-${arch}.${download_extension}")
  • Patch to work fine ( put only v${version} )
    $real_download_url = pick($download_url, "${download_url_base}/download/v${version}/${package_name}-${version}.${os}-${arch}.${download_extension}")

Thanks Oscar

@osmufe osmufe closed this as completed Oct 21, 2016
@osmufe
Copy link
Author

osmufe commented Oct 21, 2016

Fixed in other release

roidelapluie pushed a commit that referenced this issue Jun 21, 2017
Migrate to archive module
Rovanion pushed a commit to Rovanion/puppet-prometheus that referenced this issue May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant