mirror of
https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter.git
synced 2024-08-16 10:19:51 +02:00
filename as variable
This commit is contained in:
parent
b6a3874c2e
commit
0d2c8bfae3
3 changed files with 11 additions and 0 deletions
|
@ -15,6 +15,7 @@ Ansible role to install the prometheus node exporter from [github.com/czerwonk/p
|
||||||
| **ping_exporter__targets** | `` []`` |
|
| **ping_exporter__targets** | `` []`` |
|
||||||
| ping_exporter__nameserver | ``9.9.9.9`` |
|
| ping_exporter__nameserver | ``9.9.9.9`` |
|
||||||
| ping_exporter__web_listen_address | ``:9427`` |
|
| ping_exporter__web_listen_address | ``:9427`` |
|
||||||
|
| ping_exporter__filename | *see defaults/main.yml* |
|
||||||
| submodules_versioncheck | ``false`` |
|
| submodules_versioncheck | ``false`` |
|
||||||
|
|
||||||
Please define all your targets in the ``ping_exporter__targets`` array.
|
Please define all your targets in the ``ping_exporter__targets`` array.
|
||||||
|
|
|
@ -5,6 +5,8 @@ ping_exporter__group: 'ping_exporter'
|
||||||
ping_exporter__user_home: '/var/lib/ping_exporter'
|
ping_exporter__user_home: '/var/lib/ping_exporter'
|
||||||
ping_exporter__shell: '/bin/false'
|
ping_exporter__shell: '/bin/false'
|
||||||
|
|
||||||
|
ping_exporter__filename: "ping_exporter_{{ ping_exporter_version_target }}_linux_{{ ping_arch }}.deb"
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
ping_exporter__version: 'latest'
|
ping_exporter__version: 'latest'
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,14 @@
|
||||||
ping_exporter__repo: 'https://github.com/czerwonk/ping_exporter.git'
|
ping_exporter__repo: 'https://github.com/czerwonk/ping_exporter.git'
|
||||||
ping_exporter__repo_api: 'https://api.github.com/repos/czerwonk/ping_exporter/releases/latest'
|
ping_exporter__repo_api: 'https://api.github.com/repos/czerwonk/ping_exporter/releases/latest'
|
||||||
|
|
||||||
|
ping_arch_map:
|
||||||
|
x86_64: 'amd64'
|
||||||
|
aarch64: 'arm64'
|
||||||
|
armv7l: 'armv7'
|
||||||
|
armv6l: 'armv6'
|
||||||
|
|
||||||
|
ping_arch: "{{ ping_arch_map[ansible_architecture] | default(ansible_architecture) }}"
|
||||||
|
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 6 # should be a integer
|
playbook_version_number: 6 # should be a integer
|
||||||
playbook_version_path: 'do1jlr.prometheus_ping_exporter.version'
|
playbook_version_path: 'do1jlr.prometheus_ping_exporter.version'
|
||||||
|
|
Loading…
Reference in a new issue