Skip to content

Commit

Permalink
Merge pull request voxpupuli#292 from moon-hawk/patch-1
Browse files Browse the repository at this point in the history
remove version path splitting for process exporter
  • Loading branch information
bastelfreak authored Jan 24, 2019
2 parents 68b4993 + fffd69b commit 0b0ad62
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions manifests/process_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,7 @@
Stdlib::Absolutepath $bin_dir = $prometheus::bin_dir,
) inherits prometheus {

# Prometheus removed a dot on the realease name at 0.2.0
if versioncmp ($version, '0.2.0') >= 0 {
$filename = "${package_name}-${version}${os}_${arch}.${download_extension}"
}
else {
$filename = "${package_name}-${version}.${os}-${arch}.${download_extension}"
}
$filename = "${package_name}-${version}.${os}-${arch}.${download_extension}"
$real_download_url = pick($download_url,"${download_url_base}/download/v${version}/${filename}")
$notify_service = $restart_on_change ? {
true => Service['process-exporter'],
Expand Down

0 comments on commit 0b0ad62

Please sign in to comment.