r/blackbox-exporter: Rework to run as container

Instead of downloading the `blackbox_exporter` binary from GitHub and
copying it to the managed node, the _blackbox-exporter_ role now
installs _podman_ and configures a systemd container unit (Quadlet) to
run it in a container.  This simplifies the deployment considerably, and
will make updating easier (just run the playbook with `-e
blackbox_exporter_pull_image=true`).
This commit is contained in:
2025-01-23 21:56:16 -06:00
parent 81663a654d
commit dcf1e5adfc
6 changed files with 65 additions and 79 deletions

View File

@@ -1,3 +1,6 @@
blackbox_modules: {}
blackbox_config:
modules: '{{ blackbox_modules }}'
blackbox_container_image: '{{ blackbox_container_image_name }}:{{ blackbox_container_image_tag }}'
blackbox_container_image_name: quay.io/prometheus/blackbox-exporter
blackbox_container_image_tag: latest