[prometheus] Define Prometheus Nginx exporter address globally to make easier the separation saclay/cachan

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-06-24 23:12:43 +02:00
parent 65f01fa420
commit e6b77a65e2
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 4 additions and 4 deletions

View File

@ -0,0 +1,3 @@
---
glob_prometheus_nginx_exporter:
listen_addr: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ipv4 | first }}"

View File

@ -1,3 +1,3 @@
--- ---
loc_prometheus_nginx_exporter: glob_prometheus_nginx_exporter:
listen_addr: "{{ query('ldap', 'ip', ansible_hostname, 'cachan-adm') | ipv4 | first }}" listen_addr: "{{ query('ldap', 'ip', ansible_hostname, 'cachan-adm') | ipv4 | first }}"

View File

@ -30,6 +30,3 @@ glob_nginx:
- "172.16.0.0/16" - "172.16.0.0/16"
- "fd00::/56" - "fd00::/56"
deploy_robots_file: false deploy_robots_file: false
glob_prometheus_nginx_exporter:
listen_addr: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ipv4 | first }}"