Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: prometheus
name: prometheus
version: 0.29.0
version: 0.28.0+stackhpc.1
readme: README.md
authors:
- "Ben Kochie (https://github.com/SuperQ)"
Expand Down
14 changes: 11 additions & 3 deletions roles/_common/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
- name: "Verify checksum of {{ __common_binary_basename }}"
run_once: true
check_mode: false
when: (_common_checksums_url | length > 0)
when: (_common_checksum | length > 0) or (_common_checksums_url | length > 0)
block:
- name: "Fetch checksum list for {{ __common_binary_basename }}"
ansible.builtin.uri:
Expand All @@ -91,12 +91,14 @@
return_content: true
status_code: [200, 203, 204, 206, 300, 301, 302, 303, 304, 307, 308]
follow_redirects: all
when: (_common_checksum | length == 0)
register: __common_binary_checksums_raw

- name: "Parse checksum list for {{ __common_binary_basename }}"
ansible.builtin.set_fact:
__common_binary_checksums: "{{ dict(__common_binary_checksums_raw.content.splitlines()
| map('regex_findall', '^([a-fA-F0-9]+)\\s+(.+)$') | map('flatten') | map('reverse')) }}"
when: (_common_checksum | length == 0)

- name: "Calculate checksum of {{ __common_binary_basename }}"
ansible.builtin.stat:
Expand All @@ -105,6 +107,11 @@
get_checksum: true
register: __common_binary_checksum

- name: "Use provided checksum"
ansible.builtin.set_fact:
__common_binary_checksums: "{{ { __common_binary_basename: _common_checksum } }}"
when: (_common_checksum | length > 0)

- name: "Verify correct checksum of {{ __common_binary_basename }}"
ansible.builtin.assert:
that: __common_binary_checksum.stat.checksum == __common_binary_checksums[__common_binary_basename]
Expand Down Expand Up @@ -153,8 +160,9 @@
group: root
loop: "{{ _common_binaries }}"
become: true
notify:
- "{{ ansible_parent_role_names | first }} : Restart {{ _common_service_name }}"
# Avoid notifying the Restart SERVICE handler when SERVICE_skip_configure has been set because the systemd service doesn't exist
notify: >-
{{ _common_skip_configure | default(False) | ternary([], [(ansible_parent_role_names | first) ~ " : Restart " ~ _common_service_name]) | list }}
tags:
- "{{ ansible_parent_role_names | first | regex_replace(ansible_collection_name ~ '.', '') }}"
- install
Expand Down
4 changes: 2 additions & 2 deletions roles/_common/tasks/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- name: "Check for deprecated skip_install variable"
ansible.builtin.assert:
that:
- __common_parent_role_short_name ~ '_skip_install' not in vars
- (__common_parent_role_short_name == "prometheus") or (__common_parent_role_short_name ~ '_skip_install' not in vars)
fail_msg: "The variable {{ __common_parent_role_short_name ~ '_skip_install' }} is deprecated.
Please use `--skip-tags {{ __common_parent_role_short_name }}_install` instead to skip the installation."
tags:
Expand Down Expand Up @@ -81,7 +81,7 @@
- >-
[_common_web_listen_address] |
flatten |
reject('match', '.+:\\d+$') |
reject('match', '.*:\\d+$') |
list |
length == 0
when: (_common_web_listen_address | length > 0)
4 changes: 4 additions & 0 deletions roles/_common/templates/web_config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ http_server_config:
{% if _common_basic_auth_users | length > 0 %}
basic_auth_users:
{% for k, v in _common_basic_auth_users.items() %}
{% if v is mapping %}
{{ k }}: {{ v.hashed | mandatory(msg='Give basic_auth_users in format {"USERNAME": "PASSWORD IN CLEARTEXT"} or {"USERNAME: {"hashed": "PASSWORD ALREADY HASHED"}}') }}
{% else %}
{{ k }}: {{ v | string | password_hash('bcrypt', ('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' | shuffle(seed=inventory_hostname) | join)[:22], rounds=9) }}
{% endif %}
{% endfor %}
{% endif %}
4 changes: 4 additions & 0 deletions roles/alertmanager/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
alertmanager_version: 0.31.1
alertmanager_binary_url: "https://github.com/{{ _alertmanager_repo }}/releases/download/v{{ alertmanager_version }}/\
alertmanager-{{ alertmanager_version }}.{{ ansible_facts['system'] | lower }}-{{ _alertmanager_go_ansible_arch }}.tar.gz"
alertmanager_checksum: ""
alertmanager_checksums_url: "https://github.com/{{ _alertmanager_repo }}/releases/download/v{{ alertmanager_version }}/sha256sums.txt"

alertmanager_config_dir: /etc/alertmanager
Expand Down Expand Up @@ -145,3 +146,6 @@ alertmanager_local_cache_path: "/tmp/alertmanager-{{ ansible_facts['system'] | l

alertmanager_system_user: alertmanager
alertmanager_system_group: "{{ alertmanager_system_user }}"

# Set to true for install-only runs
alertmanager_skip_configure: false
4 changes: 4 additions & 0 deletions roles/alertmanager/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
_common_binaries: "{{ _alertmanager_binaries }}"
_common_binary_install_dir: "{{ alertmanager_binary_install_dir }}"
_common_binary_url: "{{ alertmanager_binary_url }}"
_common_checksum: "{{ alertmanager_checksum }}"
_common_checksums_url: "{{ alertmanager_checksums_url }}"
_common_system_group: "{{ alertmanager_system_group }}"
_common_system_user: "{{ alertmanager_system_user }}"
_common_config_dir: "{{ alertmanager_config_dir }}"
_common_binary_unarchive_opts: ['--strip-components=1']
_common_skip_configure: "{{ alertmanager_skip_configure }}"
tags:
- alertmanager
- install
Expand All @@ -43,6 +45,7 @@
- name: Configure
ansible.builtin.include_tasks:
file: configure.yml
when: not alertmanager_skip_configure
tags:
- alertmanager
- configure
Expand All @@ -57,6 +60,7 @@
state: started
when:
- not ansible_check_mode
- not alertmanager_skip_configure
tags:
- alertmanager
- run
Expand Down
1 change: 1 addition & 0 deletions roles/apache_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
apache_exporter_version: 1.0.12
apache_exporter_binary_url: "https://github.com/{{ _apache_exporter_repo }}/releases/download/v{{ apache_exporter_version }}/\
apache_exporter-{{ apache_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _apache_exporter_go_ansible_arch }}.tar.gz"
apache_exporter_checksum: ""
apache_exporter_checksums_url: "https://github.com/{{ _apache_exporter_repo }}/releases/download/v{{ apache_exporter_version }}/sha256sums.txt"

apache_exporter_web_listen_address: "0.0.0.0:9117"
Expand Down
1 change: 1 addition & 0 deletions roles/apache_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
_common_binaries: "{{ _apache_exporter_binaries }}"
_common_binary_install_dir: "{{ apache_exporter_binary_install_dir }}"
_common_binary_url: "{{ apache_exporter_binary_url }}"
_common_checksum: "{{ apache_exporter_checksum }}"
_common_checksums_url: "{{ apache_exporter_checksums_url }}"
_common_system_group: "{{ apache_exporter_system_group }}"
_common_system_user: "{{ apache_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/bind_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
bind_exporter_version: 0.8.0
bind_exporter_binary_url: "https://github.com/{{ _bind_exporter_repo }}/releases/download/v{{ bind_exporter_version }}/\
bind_exporter-{{ bind_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _bind_exporter_go_ansible_arch }}.tar.gz"
bind_exporter_checksum: ""
bind_exporter_checksums_url: "https://github.com/{{ _bind_exporter_repo }}/releases/download/v{{ bind_exporter_version }}/sha256sums.txt"

bind_exporter_web_listen_address: "0.0.0.0:9119"
Expand Down
1 change: 1 addition & 0 deletions roles/bind_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _bind_exporter_binaries }}"
_common_binary_install_dir: "{{ bind_exporter_binary_install_dir }}"
_common_binary_url: "{{ bind_exporter_binary_url }}"
_common_checksum: "{{ bind_exporter_checksum }}"
_common_checksums_url: "{{ bind_exporter_checksums_url }}"
_common_system_group: "{{ bind_exporter_system_group }}"
_common_system_user: "{{ bind_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/blackbox_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
blackbox_exporter_version: 0.28.0
blackbox_exporter_binary_url: "https://github.com/{{ _blackbox_exporter_repo }}/releases/download/v{{ blackbox_exporter_version }}/\
blackbox_exporter-{{ blackbox_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _blackbox_exporter_go_ansible_arch }}.tar.gz"
blackbox_exporter_checksum: ""
blackbox_exporter_checksums_url: "https://github.com/{{ _blackbox_exporter_repo }}/releases/download/v{{ blackbox_exporter_version }}/sha256sums.txt"

blackbox_exporter_web_listen_address: "0.0.0.0:9115"
Expand Down
1 change: 1 addition & 0 deletions roles/blackbox_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _blackbox_exporter_binaries }}"
_common_binary_install_dir: "{{ blackbox_exporter_binary_install_dir }}"
_common_binary_url: "{{ blackbox_exporter_binary_url }}"
_common_checksum: "{{ blackbox_exporter_checksum }}"
_common_checksums_url: "{{ blackbox_exporter_checksums_url }}"
_common_system_group: "{{ blackbox_exporter_system_group }}"
_common_system_user: "{{ blackbox_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/chrony_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
chrony_exporter_version: 0.13.3
chrony_exporter_binary_url: "https://github.com/{{ _chrony_exporter_repo }}/releases/download/v{{ chrony_exporter_version }}/\
chrony_exporter-{{ chrony_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _chrony_exporter_go_ansible_arch }}.tar.gz"
chrony_exporter_checksum: ""
chrony_exporter_checksums_url: "https://github.com/{{ _chrony_exporter_repo }}/releases/download/v{{ chrony_exporter_version }}/sha256sums.txt"

chrony_exporter_web_listen_address: "0.0.0.0:9123"
Expand Down
1 change: 1 addition & 0 deletions roles/chrony_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _chrony_exporter_binaries }}"
_common_binary_install_dir: "{{ chrony_exporter_binary_install_dir }}"
_common_binary_url: "{{ chrony_exporter_binary_url }}"
_common_checksum: "{{ chrony_exporter_checksum }}"
_common_checksums_url: "{{ chrony_exporter_checksums_url }}"
_common_system_group: "{{ chrony_exporter_system_group }}"
_common_system_user: "{{ chrony_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/consul_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
consul_exporter_version: 0.13.0
consul_exporter_binary_url: "https://github.com/{{ _consul_exporter_repo }}/releases/download/v{{ consul_exporter_version }}/\
consul_exporter-{{ consul_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _consul_exporter_go_ansible_arch }}.tar.gz"
consul_exporter_checksum: ""
consul_exporter_checksums_url: "https://github.com/{{ _consul_exporter_repo }}/releases/download/v{{ consul_exporter_version }}/sha256sums.txt"

consul_exporter_web_listen_address: "0.0.0.0:9107"
Expand Down
1 change: 1 addition & 0 deletions roles/consul_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
_common_binaries: "{{ _consul_exporter_binaries }}"
_common_binary_install_dir: "{{ consul_exporter_binary_install_dir }}"
_common_binary_url: "{{ consul_exporter_binary_url }}"
_common_checksum: "{{ consul_exporter_checksum }}"
_common_checksums_url: "{{ consul_exporter_checksums_url }}"
_common_system_group: "{{ consul_exporter_system_group }}"
_common_system_user: "{{ consul_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/fail2ban_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fail2ban_exporter_version: 0.10.3
fail2ban_exporter_binary_url: "https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/releases/v{{ fail2ban_exporter_version }}/downloads/\
fail2ban_exporter_{{ fail2ban_exporter_version }}_{{ ansible_facts['system'] | lower }}_{{ _fail2ban_exporter_go_ansible_arch }}.tar.gz"
fail2ban_exporter_checksum: ""
fail2ban_exporter_checksums_url: "https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/releases/v{{ fail2ban_exporter_version }}/downloads/\
fail2ban_exporter_{{ fail2ban_exporter_version }}_checksums.txt"

Expand Down
1 change: 1 addition & 0 deletions roles/fail2ban_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _fail2ban_exporter_binaries }}"
_common_binary_install_dir: "{{ fail2ban_exporter_binary_install_dir }}"
_common_binary_url: "{{ fail2ban_exporter_binary_url }}"
_common_checksum: "{{ fail2ban_exporter_checksum }}"
_common_checksums_url: "{{ fail2ban_exporter_checksums_url }}"
_common_system_group: "{{ fail2ban_exporter_system_group }}"
_common_system_user: "{{ fail2ban_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/influxdb_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
influxdb_exporter_version: 0.12.0
influxdb_exporter_binary_url: "https://github.com/{{ _influxdb_exporter_repo }}/releases/download/v{{ influxdb_exporter_version }}/\
influxdb_exporter-{{ influxdb_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _influxdb_exporter_go_ansible_arch }}.tar.gz"
influxdb_exporter_checksum: ""
influxdb_exporter_checksums_url: "https://github.com/{{ _influxdb_exporter_repo }}/releases/download/v{{ influxdb_exporter_version }}/sha256sums.txt"

influxdb_exporter_web_listen_address: "0.0.0.0:9122"
Expand Down
1 change: 1 addition & 0 deletions roles/influxdb_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
_common_binaries: "{{ _influxdb_exporter_binaries }}"
_common_binary_install_dir: "{{ influxdb_exporter_binary_install_dir }}"
_common_binary_url: "{{ influxdb_exporter_binary_url }}"
_common_checksum: "{{ influxdb_exporter_checksum }}"
_common_checksums_url: "{{ influxdb_exporter_checksums_url }}"
_common_system_group: "{{ influxdb_exporter_system_group }}"
_common_system_user: "{{ influxdb_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/ipmi_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ipmi_exporter_version: 1.10.1
ipmi_exporter_binary_url: "https://github.com/{{ _ipmi_exporter_repo }}/releases/download/v{{ ipmi_exporter_version }}/\
ipmi_exporter-{{ ipmi_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _ipmi_exporter_go_ansible_arch }}.tar.gz"
ipmi_exporter_checksum: ""
ipmi_exporter_checksums_url: "https://github.com/{{ _ipmi_exporter_repo }}/releases/download/v{{ ipmi_exporter_version }}/sha256sums.txt"

ipmi_exporter_modules:
Expand Down
1 change: 1 addition & 0 deletions roles/ipmi_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _ipmi_exporter_binaries }}"
_common_binary_install_dir: "{{ ipmi_exporter_binary_install_dir }}"
_common_binary_url: "{{ ipmi_exporter_binary_url }}"
_common_checksum: "{{ ipmi_exporter_checksum }}"
_common_checksums_url: "{{ ipmi_exporter_checksums_url }}"
_common_system_group: "{{ ipmi_exporter_system_group }}"
_common_system_user: "{{ ipmi_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/memcached_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
memcached_exporter_version: 0.15.5
memcached_exporter_binary_url: "https://github.com/{{ _memcached_exporter_repo }}/releases/download/v{{ memcached_exporter_version }}/\
memcached_exporter-{{ memcached_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _memcached_exporter_go_ansible_arch }}.tar.gz"
memcached_exporter_checksum: ""
memcached_exporter_checksums_url: "https://github.com/{{ _memcached_exporter_repo }}/releases/download/v{{ memcached_exporter_version }}/sha256sums.txt"

memcached_exporter_memcached_pid_file: ""
Expand Down
1 change: 1 addition & 0 deletions roles/memcached_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _memcached_exporter_binaries }}"
_common_binary_install_dir: "{{ memcached_exporter_binary_install_dir }}"
_common_binary_url: "{{ memcached_exporter_binary_url }}"
_common_checksum: "{{ memcached_exporter_checksum }}"
_common_checksums_url: "{{ memcached_exporter_checksums_url }}"
_common_system_group: "{{ memcached_exporter_system_group }}"
_common_system_user: "{{ memcached_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/mongodb_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
mongodb_exporter_version: 0.49.0
mongodb_exporter_binary_url: "https://github.com/{{ _mongodb_exporter_repo }}/releases/download/v{{ mongodb_exporter_version }}/\
mongodb_exporter-{{ mongodb_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _mongodb_exporter_go_ansible_arch }}.tar.gz"
mongodb_exporter_checksum: ""
mongodb_exporter_checksums_url: "https://github.com/{{ _mongodb_exporter_repo }}/releases/download/v{{ mongodb_exporter_version }}/\
mongodb_exporter_{{ mongodb_exporter_version }}_checksums.txt"

Expand Down
1 change: 1 addition & 0 deletions roles/mongodb_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _mongodb_exporter_binaries }}"
_common_binary_install_dir: "{{ mongodb_exporter_binary_install_dir }}"
_common_binary_url: "{{ mongodb_exporter_binary_url }}"
_common_checksum: "{{ mongodb_exporter_checksum }}"
_common_checksums_url: "{{ mongodb_exporter_checksums_url }}"
_common_system_group: "{{ mongodb_exporter_system_group }}"
_common_system_user: "{{ mongodb_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/mysqld_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
mysqld_exporter_version: 0.19.0
mysqld_exporter_binary_url: "https://github.com/{{ _mysqld_exporter_repo }}/releases/download/v{{ mysqld_exporter_version }}/\
mysqld_exporter-{{ mysqld_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _mysqld_exporter_go_ansible_arch }}.tar.gz"
mysqld_exporter_checksum: ""
mysqld_exporter_checksums_url: "https://github.com/{{ _mysqld_exporter_repo }}/releases/download/v{{ mysqld_exporter_version }}/sha256sums.txt"

mysqld_exporter_web_listen_address: "0.0.0.0:9104"
Expand Down
1 change: 1 addition & 0 deletions roles/mysqld_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _mysqld_exporter_binaries }}"
_common_binary_install_dir: "{{ mysqld_exporter_binary_install_dir }}"
_common_binary_url: "{{ mysqld_exporter_binary_url }}"
_common_checksum: "{{ mysqld_exporter_checksum }}"
_common_checksums_url: "{{ mysqld_exporter_checksums_url }}"
_common_system_group: "{{ mysqld_exporter_system_group }}"
_common_system_user: "{{ mysqld_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/nginx_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
nginx_exporter_version: 1.4.1
nginx_exporter_binary_url: "https://github.com/{{ _nginx_exporter_repo }}/releases/download/v{{ nginx_exporter_version }}/\
nginx-prometheus-exporter_{{ nginx_exporter_version }}_{{ ansible_facts['system'] | lower }}_{{ _nginx_exporter_go_ansible_arch }}.tar.gz"
nginx_exporter_checksum: ""
nginx_exporter_checksums_url: "https://github.com/{{ _nginx_exporter_repo }}/releases/download/v{{ nginx_exporter_version }}/\
nginx-prometheus-exporter_{{ nginx_exporter_version }}_checksums.txt"
nginx_exporter_plus: false
Expand Down
1 change: 1 addition & 0 deletions roles/nginx_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _nginx_exporter_binaries }}"
_common_binary_install_dir: "{{ nginx_exporter_binary_install_dir }}"
_common_binary_url: "{{ nginx_exporter_binary_url }}"
_common_checksum: "{{ nginx_exporter_checksum }}"
_common_checksums_url: "{{ nginx_exporter_checksums_url }}"
_common_system_group: "{{ nginx_exporter_system_group }}"
_common_system_user: "{{ nginx_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/node_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_exporter_version: 1.10.2
node_exporter_binary_url: "https://github.com/{{ _node_exporter_repo }}/releases/download/v{{ node_exporter_version }}/\
node_exporter-{{ node_exporter_version }}.{{ ansible_facts['system'] | lower }}-{{ _node_exporter_go_ansible_arch }}.tar.gz"
node_exporter_checksum: ""
node_exporter_checksums_url: "https://github.com/{{ _node_exporter_repo }}/releases/download/v{{ node_exporter_version }}/sha256sums.txt"

node_exporter_web_disable_exporter_metrics: false
Expand Down
1 change: 1 addition & 0 deletions roles/node_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
_common_binaries: "{{ _node_exporter_binaries }}"
_common_binary_install_dir: "{{ node_exporter_binary_install_dir }}"
_common_binary_url: "{{ node_exporter_binary_url }}"
_common_checksum: "{{ node_exporter_checksum }}"
_common_checksums_url: "{{ node_exporter_checksums_url }}"
_common_system_group: "{{ node_exporter_system_group }}"
_common_system_user: "{{ node_exporter_system_user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/nvidia_gpu_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
nvidia_gpu_exporter_version: 1.4.1
nvidia_gpu_exporter_binary_url: "https://github.com/{{ _nvidia_gpu_exporter_repo }}/releases/download/v{{ nvidia_gpu_exporter_version }}/\
nvidia_gpu_exporter_{{ nvidia_gpu_exporter_version }}_{{ ansible_facts['system'] | lower }}_{{ _nvidia_gpu_exporter_go_ansible_arch }}.tar.gz"
nvidia_gpu_exporter_checksum: ""
nvidia_gpu_exporter_checksums_url: "https://github.com/{{ _nvidia_gpu_exporter_repo }}/releases/download/v{{ nvidia_gpu_exporter_version }}/checksums.txt"

nvidia_gpu_exporter_web_listen_address: "0.0.0.0:9835"
Expand Down
1 change: 1 addition & 0 deletions roles/nvidia_gpu_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
_common_binaries: "{{ _nvidia_gpu_exporter_binaries }}"
_common_binary_install_dir: "{{ nvidia_gpu_exporter_binary_install_dir }}"
_common_binary_url: "{{ nvidia_gpu_exporter_binary_url }}"
_common_checksum: "{{ nvidia_gpu_exporter_checksum }}"
_common_checksums_url: "{{ nvidia_gpu_exporter_checksums_url }}"
_common_system_group: "{{ nvidia_gpu_exporter_system_group }}"
_common_system_user: "{{ nvidia_gpu_exporter_system_user }}"
Expand Down
Loading