mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-29 07:10:18 +00:00
refactor: support customizing blackbox_exporter url/mirror
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
7f81fc0216
commit
9de5b0518d
3 changed files with 5 additions and 2 deletions
|
@ -18,6 +18,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
|
||||||
| Name | Default Value | Description |
|
| Name | Default Value | Description |
|
||||||
| -------------- | ------------- | -----------------------------------|
|
| -------------- | ------------- | -----------------------------------|
|
||||||
| `blackbox_exporter_version` | 0.18.0 | Blackbox exporter package version |
|
| `blackbox_exporter_version` | 0.18.0 | Blackbox exporter package version |
|
||||||
|
| `blackbox_exporter_binary_url` | `"https://github.com/prometheus/blackbox_exporter/releases/download/v{{ blackbox_exporter_version }}/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.tar.gz"` | URL of the blackbox exporter binaries .tar.gz file |
|
||||||
| `blackbox_exporter_web_listen_address` | 0.0.0.0:9115 | Address on which blackbox exporter will be listening |
|
| `blackbox_exporter_web_listen_address` | 0.0.0.0:9115 | Address on which blackbox exporter will be listening |
|
||||||
| `blackbox_exporter_cli_flags` | {} | Additional configuration flags passed to blackbox exporter binary at startup |
|
| `blackbox_exporter_cli_flags` | {} | Additional configuration flags passed to blackbox exporter binary at startup |
|
||||||
| `blackbox_exporter_configuration_modules` | http_2xx: { prober: http, timeout: 5s, http: '' } | |
|
| `blackbox_exporter_configuration_modules` | http_2xx: { prober: http, timeout: 5s, http: '' } | |
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
blackbox_exporter_version: 0.18.0
|
blackbox_exporter_version: 0.18.0
|
||||||
|
blackbox_exporter_binary_url: "https://github.com/prometheus/blackbox_exporter/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: "0.0.0.0:9115"
|
blackbox_exporter_web_listen_address: "0.0.0.0:9115"
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
- name: Download blackbox exporter binary to local folder
|
- name: Download blackbox exporter binary to local folder
|
||||||
become: false
|
become: false
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: "https://github.com/prometheus/blackbox_exporter/releases/download/v{{ blackbox_exporter_version }}/\
|
src: "{{ blackbox_exporter_binary_url }}"
|
||||||
blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.tar.gz"
|
|
||||||
dest: "/tmp"
|
dest: "/tmp"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
creates: "/tmp/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/\
|
creates: "/tmp/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/\
|
||||||
|
|
Loading…
Reference in a new issue