ansible-collection-prometheus/roles/blackbox_exporter/meta/argument_specs.yml
Christian Brabandt 742ce8b3ae
enhancement(blackbox): add skip_install variable
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download blackbox_exporter
binary

Also, fix a small typo in the preflight task.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-03-21 15:34:17 +01:00

36 lines
1.5 KiB
YAML

---
# yamllint disable rule:line-length
argument_specs:
main:
short_description: "Deploy and manage Prometheus blackbox exporter"
description:
- "Deploy and manage Prometheus blackbox exporter which allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP."
author:
- "Prometheus Community"
options:
blackbox_exporter_version:
description: "Blackbox exporter package version"
default: "0.18.0"
blackbox_exporter_skip_install:
description: "Blackbox exporter installation tasks gets skipped when set to true."
type: bool
default: false
blackbox_exporter_binary_url:
description: "URL of the blackbox_exporter binaries .tar.gz file"
default: "https://github.com/{{ _blackbox_exporter_repo }}/releases/download/v{{ blackbox_exporter_version }}/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.tar.gz"
blackbox_exporter_web_listen_address:
description: "Address on which blackbox exporter will be listening"
default: "0.0.0.0:9115"
blackbox_exporter_cli_flags:
description: "Additional configuration flags passed to blackbox exporter binary at startup"
type: "dict"
blackbox_exporter_configuration_modules:
description: "Endpoints configuration"
type: "dict"
default:
http_2xx:
prober: http
timeout: 5s
http:
method: GET
valid_status_codes: []