Skip to content

Commit

Permalink
feat: allow overriding _prometheus_binary_install_dir
Browse files Browse the repository at this point in the history
See #221

Signed-off-by: Antoine Beaupré <anarcat@debian.org>
  • Loading branch information
anarcat committed Sep 27, 2023
1 parent 58b21e1 commit 1497675
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions roles/prometheus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion roles/prometheus/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1497675

Please sign in to comment.