From 149ba1e742a076af4891d2259e62e573d91ab275 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 28 Aug 2019 09:30:45 +0200 Subject: [PATCH] Archlinux: set correct binary name for node_exporter --- data/Archlinux.yaml | 1 + manifests/node_exporter.pp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/data/Archlinux.yaml b/data/Archlinux.yaml index 186a466ec..8c2e4a723 100644 --- a/data/Archlinux.yaml +++ b/data/Archlinux.yaml @@ -5,3 +5,4 @@ prometheus::bin_dir: '/usr/bin' prometheus::env_file_path: '/etc/default' prometheus::node_exporter::package_name: 'prometheus-node-exporter' prometheus::node_exporter::install_method: 'package' +prometheus::node_exporter::bin_name: 'prometheus-node-exporter' diff --git a/manifests/node_exporter.pp b/manifests/node_exporter.pp index 5acf1289a..fab4033ca 100644 --- a/manifests/node_exporter.pp +++ b/manifests/node_exporter.pp @@ -115,6 +115,7 @@ Boolean $export_scrape_job = false, Stdlib::Port $scrape_port = 9100, String[1] $scrape_job_name = 'node', + Optional[String[1]] $bin_name = undef, ) inherits prometheus { # Prometheus added a 'v' on the realease name at 0.13.0 @@ -172,5 +173,6 @@ export_scrape_job => $export_scrape_job, scrape_port => $scrape_port, scrape_job_name => $scrape_job_name, + bin_name => $bin_name, } }