Skip to content

Commit

Permalink
Merge pull request #365 from bastelfreak/archlinux2
Browse files Browse the repository at this point in the history
Archlinux: set correct binary name for node_exporter
  • Loading branch information
dhollinger authored Sep 3, 2019
2 parents 837a5fc + 149ba1e commit fead063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/Archlinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 2 additions & 0 deletions manifests/node_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -172,5 +173,6 @@
export_scrape_job => $export_scrape_job,
scrape_port => $scrape_port,
scrape_job_name => $scrape_job_name,
bin_name => $bin_name,
}
}

0 comments on commit fead063

Please sign in to comment.