Enable Prometheus exporter on nodes by default

This commit is contained in:
Joshua Boniface 2023-12-10 00:18:44 -05:00
parent 010ecefe16
commit 8bf3bbdeb1
3 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,9 @@ debian_main_repository: http://ftp.debian.org/debian
debian_security_repository: http://security.debian.org debian_security_repository: http://security.debian.org
debian_pvc_repository: https://repo.parallelvirtualcluster.org/debian debian_pvc_repository: https://repo.parallelvirtualcluster.org/debian
# Enable Prometheus metric reporting from PVC nodes (installs prometheus-node-exporter)
enable_prometheus_exporter: yes
# Root user password # Root user password
# > Use pwgen to generate # > Use pwgen to generate
root_password: "" root_password: ""

View File

@ -25,3 +25,5 @@ fail2ban_ignorelist:
- 10.0.0.0/8 - 10.0.0.0/8
cpu_governor: "ondemand" cpu_governor: "ondemand"
enable_prometheus_exporter: yes

View File

@ -296,6 +296,12 @@
until: apt_res is success until: apt_res is success
tags: base-packages tags: base-packages
- name: install Prometheus node exporter if enabled
apt:
name:
- prometheus-node-exporter
when: enable_prometheus_exporter is defined and enable_prometheus_exporter
- name: install Intel-specific microcode package - name: install Intel-specific microcode package
apt: apt:
name: name: