62 lines
1.9 KiB
YAML
Executable file
62 lines
1.9 KiB
YAML
Executable file
#!/usr/bin/env ansible-playbook
|
|
---
|
|
- hosts: prometheus-fleming.adm.auro.re,prometheus-fleming-fo.adm.auro.re
|
|
vars:
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
|
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['fleming_pve'] + groups['fleming_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['fleming_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
|
|
- hosts: prometheus-pacaterie.adm.auro.re,prometheus-pacaterie-fo.adm.auro.re
|
|
vars:
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
|
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['pacaterie_pve'] + groups['pacaterie_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['pacaterie_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
|
|
- hosts: prometheus-edc.adm.auro.re
|
|
vars:
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
|
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['edc_pve'] + groups['edc_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['edc_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
|
|
- hosts: prometheus-gs.adm.auro.re
|
|
vars:
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
|
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['gs_pve'] + groups['gs_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['gs_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
|
|
# Monitor all hosts
|
|
- hosts: all,!unifi,!ovh
|
|
roles:
|
|
- prometheus_node
|