fix: add binary/checksum urls to argument specs

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2023-03-06 21:53:28 +00:00
parent f9ccb4dcd0
commit 081f7797a7
No known key found for this signature in database
GPG key ID: 00872BAF59D98753
3 changed files with 24 additions and 3 deletions

View file

@ -15,6 +15,13 @@ argument_specs:
- "Allows to use local packages instead of ones distributed on github." - "Allows to use local packages instead of ones distributed on github."
- "As parameter it takes a directory where C(alertmanager) AND C(amtool) binaries are stored on host on which ansible is ran." - "As parameter it takes a directory where C(alertmanager) AND C(amtool) binaries are stored on host on which ansible is ran."
- "This overrides I(alertmanager_version) parameter" - "This overrides I(alertmanager_version) parameter"
alertmanager_binary_url:
description: "URL of the alertmanager binaries .tar.gz file"
default: "https://github.com/prometheus/alertmanager/releases/download/v{{ alertmanager_version }}/\
alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}.tar.gz"
alertmanager_checksums_url:
description: "URL of the alertmanager checksums file"
default: "https://github.com/prometheus/alertmanager/releases/download/v{{ alertmanager_version }}/sha256sums.txt"
alertmanager_web_listen_address: alertmanager_web_listen_address:
description: "Address on which alertmanager will be listening" description: "Address on which alertmanager will be listening"
default: "0.0.0.0:9093" default: "0.0.0.0:9093"

View file

@ -15,6 +15,13 @@ argument_specs:
- "Enables the use of local packages instead of those distributed on github." - "Enables the use of local packages instead of those distributed on github."
- "The parameter may be set to a directory where the C(node_exporter) binary is stored on the host where ansible is run." - "The parameter may be set to a directory where the C(node_exporter) binary is stored on the host where ansible is run."
- "This overrides the I(node_exporter_version) parameter" - "This overrides the I(node_exporter_version) parameter"
node_exporter_binary_url:
description: "URL of the node exporter binaries .tar.gz file"
default: "https://github.com/prometheus/node_exporter/releases/download/v{{ node_exporter_version }}/\
node_exporter-{{ node_exporter_version }}.linux-{{ go_arch }}.tar.gz"
node_exporter_checksums_url:
description: "URL of the node exporter checksums file"
default: "https://github.com/prometheus/node_exporter/releases/download/v{{ node_exporter_version }}/sha256sums.txt"
node_exporter_web_listen_address: node_exporter_web_listen_address:
description: "Address on which node exporter will listen" description: "Address on which node exporter will listen"
default: "0.0.0.0:9100" default: "0.0.0.0:9100"
@ -47,14 +54,11 @@ argument_specs:
- "Configuration for TLS authentication." - "Configuration for TLS authentication."
- "Keys and values are the same as in L(node_exporter docs,https://github.com/prometheus/node_exporter/blob/master/https/README.md#sample-config)." - "Keys and values are the same as in L(node_exporter docs,https://github.com/prometheus/node_exporter/blob/master/https/README.md#sample-config)."
type: "dict" type: "dict"
elements: "str"
node_exporter_http_server_config: node_exporter_http_server_config:
description: description:
- "Config for HTTP/2 support." - "Config for HTTP/2 support."
- "Keys and values are the same as in L(node_exporter docs,https://github.com/prometheus/node_exporter/blob/master/https/README.md#sample-config)." - "Keys and values are the same as in L(node_exporter docs,https://github.com/prometheus/node_exporter/blob/master/https/README.md#sample-config)."
type: "dict" type: "dict"
elements: "str"
node_exporter_basic_auth_users: node_exporter_basic_auth_users:
description: "Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt." description: "Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt."
type: "dict" type: "dict"
elements: "str"

View file

@ -10,9 +10,19 @@ argument_specs:
snmp_exporter_version: snmp_exporter_version:
description: "SNMP exporter package version" description: "SNMP exporter package version"
default: "0.19.0" default: "0.19.0"
snmp_exporter_binary_url:
description: "URL of the snmp exporter binaries .tar.gz file"
default: "https://github.com/prometheus/snmp_exporter/releases/download/v{{ snmp_exporter_version }}/\
snmp_exporter-{{ snmp_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.tar.gz"
snmp_exporter_checksums_url:
description: "URL of the snmp exporter checksums file"
default: "https://github.com/prometheus/snmp_exporter/releases/download/v{{ snmp_exporter_version }}/sha256sums.txt"
snmp_exporter_web_listen_address: snmp_exporter_web_listen_address:
description: "Address on which SNMP exporter will be listening" description: "Address on which SNMP exporter will be listening"
default: "0.0.0.0:9116" default: "0.0.0.0:9116"
snmp_exporter_log_level:
description: "SNMP exporter service log level"
default: info
snmp_exporter_config_file: snmp_exporter_config_file:
description: description:
- "If this is empty, role will download snmp.yml file from U(https://github.com/prometheus/snmp_exporter)." - "If this is empty, role will download snmp.yml file from U(https://github.com/prometheus/snmp_exporter)."