19 lines
1.2 KiB
YAML
19 lines
1.2 KiB
YAML
---
|
|
# vars file for ansible-role-template
|
|
|
|
# postgres_exporter. Derived from psql_prometheus_exporter_version, which is a
|
|
# default so that it can be overridden: the version is part of the paths, so a
|
|
# version bump downloads, unpacks and restarts by itself.
|
|
psql_prometheus_exporter_dir: 'postgres_exporter-{{ psql_prometheus_exporter_version }}.linux-amd64'
|
|
psql_prometheus_exporter_file: '{{ psql_prometheus_exporter_dir }}.tar.gz'
|
|
psql_prometheus_exporter_user: postgres_exporter
|
|
psql_prometheus_exporter_home: /opt/postgres_exporter
|
|
psql_prometheus_exporter_dist_dir: '{{ psql_prometheus_exporter_home }}/dist'
|
|
psql_prometheus_exporter_cmd: '{{ psql_prometheus_exporter_dist_dir }}/{{ psql_prometheus_exporter_dir }}/postgres_exporter'
|
|
# The DSN carries the password when the connection is over TCP, so it is kept
|
|
# out of the systemd unit, which is world readable
|
|
psql_prometheus_exporter_env_dir: >-
|
|
{% if ansible_distribution_file_variety == "Debian" %}{{ pg_backup_conf_dir }}
|
|
{%- elif ansible_distribution_file_variety == "RedHat" %}{{ pg_el_backup_conf_dir }}{% endif %}
|
|
psql_prometheus_exporter_env_file: '{{ psql_prometheus_exporter_env_dir }}/postgres_exporter'
|