Skip to content

Commit

Permalink
Merge pull request #835 from /issues/662
Browse files Browse the repository at this point in the history
allow installation of rabbitmq_exporter >= 1.0.0
  • Loading branch information
TheMeier authored Jan 4, 2025
2 parents 01d6556 + 202a09d commit 25d11e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/rabbitmq_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

if versioncmp($version, '1.0.0') >= 0 {
$extract_path = "/opt/${package_name}-${version}.${os}-${arch}"
$real_download_url = pick($download_url, "${download_url_base}/download/v${version}/${package_name}_${version}_${os}_${arch}.${download_extension}")
$real_download_url = pick($download_url, "${download_url_base}/download/v${version}/${package_name}_${version}_${os}_${arch}.${download_extension}")
file { $extract_path:
ensure => 'directory',
owner => 'root',
Expand All @@ -129,7 +129,7 @@
}
} else {
$extract_path = '/opt'
$real_download_url = pick($download_url, "${download_url_base}/download/v${version}/${package_name}-${version}.${os}-${arch}.${download_extension}")
$real_download_url = pick($download_url, "${download_url_base}/download/v${version}/${package_name}-${version}.${os}-${arch}.${download_extension}")
}

$notify_service = $restart_on_change ? {
Expand Down

0 comments on commit 25d11e8

Please sign in to comment.