From 149767517744f78afdab97f705e17700489f2f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Wed, 27 Sep 2023 15:01:39 -0400 Subject: [PATCH] feat: allow overriding _prometheus_binary_install_dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #221 Signed-off-by: Antoine Beaupré --- roles/prometheus/defaults/main.yml | 1 + roles/prometheus/vars/main.yml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/prometheus/defaults/main.yml b/roles/prometheus/defaults/main.yml index fac6928bf..482ed7f7d 100644 --- a/roles/prometheus/defaults/main.yml +++ b/roles/prometheus/defaults/main.yml @@ -5,6 +5,7 @@ prometheus_binary_url: "https://github.com/{{ _prometheus_repo }}/releases/downl prometheus-{{ prometheus_version }}.linux-{{ go_arch }}.tar.gz" prometheus_checksums_url: "https://github.com/{{ _prometheus_repo }}/releases/download/v{{ prometheus_version }}/sha256sums.txt" prometheus_skip_install: false +_prometheus_binary_install_dir: '/usr/local/bin' prometheus_config_dir: /etc/prometheus prometheus_db_dir: /var/lib/prometheus diff --git a/roles/prometheus/vars/main.yml b/roles/prometheus/vars/main.yml index a96d3f9cf..9d233e26a 100644 --- a/roles/prometheus/vars/main.yml +++ b/roles/prometheus/vars/main.yml @@ -7,7 +7,6 @@ go_arch_map: armv6l: 'armv6' go_arch: "{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}" -_prometheus_binary_install_dir: '/usr/local/bin' _prometheus_selinux_packages: "{{ ['libselinux-python', 'policycoreutils-python'] if ansible_python_version is version('3', '<') else