Skip to content

Commit

Permalink
Merge pull request #301 from mark-tomich/main
Browse files Browse the repository at this point in the history
bugfix: use temporary directory to make compatible with multi-user controllers
  • Loading branch information
gardar authored Mar 5, 2024
2 parents cf1a5db + 8a9c4e6 commit da146e0
Show file tree
Hide file tree
Showing 57 changed files with 207 additions and 93 deletions.
3 changes: 3 additions & 0 deletions roles/alertmanager/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ alertmanager_amtool_config_alertmanager_url: "{{ alertmanager_web_external_url }

# Extended output of `amtool` commands, use '' for less verbosity
alertmanager_amtool_config_output: 'extended'

# Local path to stash the archive and its extraction
alertmanager_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/alertmanager/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,6 @@ argument_specs:
alertmanager_amtool_config_output:
description: 'Extended output, use C("") for simple output.'
default: "extended"
alertmanager_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/alertmanager/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
become: false
ansible.builtin.get_url:
url: "{{ alertmanager_binary_url }}"
dest: "/tmp/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ alertmanager_archive_path }}/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __alertmanager_checksum }}"
mode: 0644
register: _download_archive
Expand All @@ -50,16 +50,16 @@
- name: Unpack alertmanager binaries
become: false
ansible.builtin.unarchive:
src: "/tmp/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
src: "{{ alertmanager_archive_path }}/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ alertmanager_archive_path }}"
mode: 0755
creates: "/tmp/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}/alertmanager"
creates: "{{ alertmanager_archive_path }}/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}/alertmanager"
delegate_to: localhost
check_mode: false

- name: Propagate official alertmanager and amtool binaries
ansible.builtin.copy:
src: "/tmp/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}/{{ item }}"
src: "{{ alertmanager_archive_path }}/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch }}/{{ item }}"
dest: "{{ _alertmanager_binary_install_dir }}/{{ item }}"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/blackbox_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ blackbox_exporter_configuration_modules:
blackbox_exporter_config_dir: /etc/blackbox_exporter

blackbox_exporter_binary_install_dir: "/usr/local/bin"

# Local path to stash the archive and its extraction
blackbox_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/blackbox_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ argument_specs:
blackbox_exporter_group:
description: "The group the exporter runs as"
default: "blackbox-exp"
blackbox_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/blackbox_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
become: false
ansible.builtin.get_url:
url: "{{ blackbox_exporter_binary_url }}"
dest: "/tmp/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ blackbox_exporter_archive_path }}/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __blackbox_exporter_checksum }}"
mode: '0644'
register: _download_binary
Expand All @@ -38,15 +38,15 @@
- name: Unpack blackbox_exporter binary
become: false
ansible.builtin.unarchive:
src: "/tmp/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}/blackbox_exporter"
src: "{{ blackbox_exporter_archive_path }}/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ blackbox_exporter_archive_path }}"
creates: "{{ blackbox_exporter_archive_path }}/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}/blackbox_exporter"
delegate_to: localhost
check_mode: false

- name: Propagate blackbox_exporter binaries
ansible.builtin.copy:
src: "/tmp/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}/blackbox_exporter"
src: "{{ blackbox_exporter_archive_path }}/blackbox_exporter-{{ blackbox_exporter_version }}.linux-{{ go_arch }}/blackbox_exporter"
dest: "{{ blackbox_exporter_binary_install_dir }}/blackbox_exporter"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/cadvisor/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ cadvisor_prometheus_endpoint: "/metrics"
cadvisor_binary_install_dir: "/usr/local/bin"
cadvisor_system_group: "root"
cadvisor_system_user: "{{ cadvisor_system_group }}"

# Local path to stash the archive and its extraction
cadvisor_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/cadvisor/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ argument_specs:
- "I(Advanced)"
- "cAdvisor user"
default: "root"
cadvisor_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
4 changes: 2 additions & 2 deletions roles/cadvisor/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
become: false
ansible.builtin.get_url:
url: "{{ cadvisor_binary_url }}"
dest: "/tmp/cadvisor-v{{ cadvisor_version }}-linux-{{ go_arch }}"
dest: "{{ cadvisor_archive_path }}/cadvisor-v{{ cadvisor_version }}-linux-{{ go_arch }}"
mode: '0644'
register: _download_binary
until: _download_binary is succeeded
Expand All @@ -38,7 +38,7 @@

- name: Propagate cadvisor binaries
ansible.builtin.copy:
src: "/tmp/cadvisor-v{{ cadvisor_version }}-linux-{{ go_arch }}"
src: "{{ cadvisor_archive_path }}/cadvisor-v{{ cadvisor_version }}-linux-{{ go_arch }}"
dest: "{{ cadvisor_binary_install_dir }}/cadvisor"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/chrony_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ chrony_exporter_disabled_collectors: []
chrony_exporter_binary_install_dir: "/usr/local/bin"
chrony_exporter_system_group: "chrony-exp"
chrony_exporter_system_user: "{{ chrony_exporter_system_group }}"

# Local path to stash the archive and its extraction
chrony_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/chrony_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ argument_specs:
- "I(Advanced)"
- "Chrony exporter user"
default: "chrony-exp"
chrony_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/chrony_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
become: false
ansible.builtin.get_url:
url: "{{ chrony_exporter_binary_url }}"
dest: "/tmp/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ chrony_exporter_archive_path }}/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __chrony_exporter_checksum }}"
mode: '0644'
register: _download_binary
Expand All @@ -40,15 +40,15 @@
- name: Unpack chrony_exporter binary
become: false
ansible.builtin.unarchive:
src: "/tmp/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}/chrony_exporter"
src: "{{ chrony_exporter_archive_path }}/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ chrony_exporter_archive_path }}"
creates: "{{ chrony_exporter_archive_path }}/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}/chrony_exporter"
delegate_to: localhost
check_mode: false

- name: Propagate chrony_exporter binaries
ansible.builtin.copy:
src: "/tmp/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}/chrony_exporter"
src: "{{ chrony_exporter_archive_path }}/chrony_exporter-{{ chrony_exporter_version }}.linux-{{ go_arch }}/chrony_exporter"
dest: "{{ chrony_exporter_binary_install_dir }}/chrony_exporter"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/fail2ban_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ fail2ban_exporter_binary_install_dir: "/usr/local/bin"

fail2ban_exporter_username: ""
fail2ban_exporter_password: ""

# Local path to stash the archive and its extraction
fail2ban_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/fail2ban_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ argument_specs:
description:
- "I(Advanced)"
- "Password to use to protect endpoints with basic auth"
fail2ban_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/fail2ban_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
become: false
ansible.builtin.get_url:
url: "{{ fail2ban_exporter_binary_url }}"
dest: "/tmp/fail2ban_exporter_{{ fail2ban_exporter_version }}_linux_{{ go_arch }}.tar.gz"
dest: "{{ fail2ban_exporter_archive_path }}/fail2ban_exporter_{{ fail2ban_exporter_version }}_linux_{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __fail2ban_exporter_checksum }}"
mode: '0644'
register: _download_binary
Expand All @@ -22,15 +22,15 @@
- name: Unpack fail2ban_exporter binary
become: false
ansible.builtin.unarchive:
src: "/tmp/fail2ban_exporter_{{ fail2ban_exporter_version }}_linux_{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/fail2ban_exporter"
src: "{{ fail2ban_exporter_archive_path }}/fail2ban_exporter_{{ fail2ban_exporter_version }}_linux_{{ go_arch }}.tar.gz"
dest: "{{ fail2ban_exporter_archive_path }}"
creates: "{{ fail2ban_exporter_archive_path }}/fail2ban_exporter"
delegate_to: localhost
check_mode: false

- name: Propagate fail2ban_exporter binaries
ansible.builtin.copy:
src: "/tmp/fail2ban_exporter"
src: "{{ fail2ban_exporter_archive_path }}/fail2ban_exporter"
dest: "{{ fail2ban_exporter_binary_install_dir }}/fail2ban_exporter"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/ipmi_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ ipmi_exporter_log_format: "logfmt"
ipmi_exporter_binary_install_dir: "/usr/local/bin"
ipmi_exporter_system_group: "ipmi-exp"
ipmi_exporter_system_user: "{{ ipmi_exporter_system_group }}"

# Local path to stash the archive and its extraction
ipmi_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/ipmi_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ argument_specs:
- "I(Advanced)"
- "ipmi_exporter user"
default: "ipmi-exp"
ipmi_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/ipmi_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
become: false
ansible.builtin.get_url:
url: "{{ ipmi_exporter_binary_url }}"
dest: "/tmp/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ ipmi_exporter_archive_path }}/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __ipmi_exporter_checksum }}"
mode: '0644'
register: _download_binary
Expand All @@ -40,15 +40,15 @@
- name: Unpack ipmi_exporter binary
become: false
ansible.builtin.unarchive:
src: "/tmp/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}/ipmi_exporter"
src: "{{ ipmi_exporter_archive_path }}/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ ipmi_exporter_archive_path }}"
creates: "{{ ipmi_exporter_archive_path }}/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}/ipmi_exporter"
delegate_to: localhost
check_mode: false

- name: Propagate ipmi_exporter binaries
ansible.builtin.copy:
src: "/tmp/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}/ipmi_exporter"
src: "{{ ipmi_exporter_archive_path }}/ipmi_exporter-{{ ipmi_exporter_version }}.linux-{{ go_arch }}/ipmi_exporter"
dest: "{{ ipmi_exporter_binary_install_dir }}/ipmi_exporter"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/memcached_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ memcached_exporter_log_format: "logfmt"
memcached_exporter_binary_install_dir: "/usr/local/bin"
memcached_exporter_system_group: "memcached-exp"
memcached_exporter_system_user: "{{ memcached_exporter_system_group }}"

# Local path to stash the archive and its extraction
memcached_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/memcached_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ argument_specs:
- "I(Advanced)"
- "memcached_exporter user"
default: "memcached-exp"
memcached_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/memcached_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
become: false
ansible.builtin.get_url:
url: "{{ memcached_exporter_binary_url }}"
dest: "/tmp/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ memcached_exporter_archive_path }}/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __memcached_exporter_checksum }}"
mode: '0644'
register: _download_binary
Expand All @@ -40,15 +40,15 @@
- name: Unpack memcached_exporter binary
become: false
ansible.builtin.unarchive:
src: "/tmp/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}/memcached_exporter"
src: "{{ memcached_exporter_archive_path }}/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ memcached_exporter_archive_path }}"
creates: "{{ memcached_exporter_archive_path }}/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}/memcached_exporter"
delegate_to: localhost
check_mode: false

- name: Propagate memcached_exporter binaries
ansible.builtin.copy:
src: "/tmp/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}/memcached_exporter"
src: "{{ memcached_exporter_archive_path }}/memcached_exporter-{{ memcached_exporter_version }}.linux-{{ go_arch }}/memcached_exporter"
dest: "{{ memcached_exporter_binary_install_dir }}/memcached_exporter"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/mongodb_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ mongodb_exporter_binary_install_dir: "/usr/local/bin"
mongodb_exporter_system_group: "{{ mongodb_exporter_system_user }}"
mongodb_exporter_system_user: "mongodb-exp"
mongodb_exporter_config_dir: "/etc/mongodb_exporter"

# Local path to stash the archive and its extraction
mongodb_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/mongodb_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ argument_specs:
- "I(Advanced)"
- "mongodb_exporter user"
default: "mongodb-exp"
mongodb_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/mongodb_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
become: false
ansible.builtin.get_url:
url: "{{ mongodb_exporter_binary_url }}"
dest: "/tmp/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ mongodb_exporter_archive_path }}/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __mongodb_exporter_checksum }}"
mode: '0644'
register: _download_binary
Expand All @@ -40,15 +40,15 @@
- name: Unpack mongodb_exporter binary
become: false
ansible.builtin.unarchive:
src: "/tmp/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}/mongodb_exporter"
src: "{{ mongodb_exporter_archive_path }}/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ mongodb_exporter_archive_path }}"
creates: "{{ mongodb_exporter_archive_path }}/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}/mongodb_exporter"
delegate_to: localhost
check_mode: false

- name: Propagate mongodb_exporter binaries
ansible.builtin.copy:
src: "/tmp/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}/mongodb_exporter"
src: "{{ mongodb_exporter_archive_path }}/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}/mongodb_exporter"
dest: "{{ mongodb_exporter_binary_install_dir }}/mongodb_exporter"
mode: 0755
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/mysqld_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ mysqld_exporter_binary_install_dir: "/usr/local/bin"
mysqld_exporter_config_dir: "/etc/mysqld_exporter"
mysqld_exporter_system_group: "mysqld-exp"
mysqld_exporter_system_user: "{{ mysqld_exporter_system_group }}"

# Local path to stash the archive and its extraction
mysqld_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/mysqld_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ argument_specs:
- "I(Advanced)"
- "MySQLd Exporter user"
default: "mysqld-exp"
mysqld_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
10 changes: 5 additions & 5 deletions roles/mysqld_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
become: false
ansible.builtin.get_url:
url: "{{ mysqld_exporter_binary_url }}"
dest: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ mysqld_exporter_archive_path }}/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}.tar.gz"
checksum: "sha256:{{ __mysqld_exporter_checksum }}"
mode: '0644'
register: _download_binary
Expand All @@ -40,17 +40,17 @@
- name: Unpack mysqld_exporter binary
become: false
ansible.builtin.unarchive:
src: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter"
src: "{{ mysqld_exporter_archive_path }}/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "{{ mysqld_exporter_archive_path }}"
creates: "{{ mysqld_exporter_archive_path }}/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter"
extra_opts:
- --no-same-owner
delegate_to: localhost
check_mode: false

- name: Propagate mysqld_exporter binaries
ansible.builtin.copy:
src: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter"
src: "{{ mysqld_exporter_archive_path }}/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter"
dest: "{{ mysqld_exporter_binary_install_dir }}/mysqld_exporter"
mode: '0755'
owner: root
Expand Down
3 changes: 3 additions & 0 deletions roles/nginx_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ nginx_exporter_log_format: "logfmt"
nginx_exporter_binary_install_dir: "/usr/local/bin"
nginx_exporter_system_group: "nginx-exp"
nginx_exporter_system_user: "{{ nginx_exporter_system_group }}"

# Local path to stash the archive and its extraction
nginx_exporter_archive_path: /tmp
3 changes: 3 additions & 0 deletions roles/nginx_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ argument_specs:
- "I(Advanced)"
- "nginx_exporter user"
default: "nginx-exp"
nginx_exporter_archive_path:
description: 'Local path to stash the archive and its extraction'
default: "/tmp"
Loading

0 comments on commit da146e0

Please sign in to comment.