Failover VMs

This commit is contained in:
Alexandre Iooss 2019-11-01 15:38:35 +01:00
parent 6dec3ed0d1
commit ccbd7d3770
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
8 changed files with 113 additions and 92 deletions

View file

@ -1,6 +1,8 @@
---
- hosts: prometheus-fleming.adm.auro.re
- hosts: prometheus-fleming.adm.auro.re,prometheus-fleming-fo.adm.auro.re
vars:
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
# Prometheus targets.json
prometheus_targets:
- targets: |
@ -9,10 +11,11 @@
- targets: "{{ groups['fleming_unifi'] | list | sort }}"
roles:
- prometheus
- prometheus-alertmanager
- hosts: prometheus-pacaterie.adm.auro.re
- hosts: prometheus-pacaterie.adm.auro.re,prometheus-pacaterie-fo.adm.auro.re
vars:
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
# Prometheus targets.json
prometheus_targets:
- targets: |
@ -21,10 +24,11 @@
- targets: "{{ groups['pacaterie_unifi'] | list | sort }}"
roles:
- prometheus
- prometheus-alertmanager
- hosts: prometheus-edc.adm.auro.re
- hosts: prometheus-edc.adm.auro.re,prometheus-edc-fo.adm.auro.re
vars:
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
# Prometheus targets.json
prometheus_targets:
- targets: |
@ -33,10 +37,11 @@
- targets: "{{ groups['edc_unifi'] | list | sort }}"
roles:
- prometheus
- prometheus-alertmanager
- hosts: prometheus-georgesand.adm.auro.re
- hosts: prometheus-georgesand.adm.auro.re,prometheus-georgesand-fo.adm.auro.re
vars:
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
# Prometheus targets.json
prometheus_targets:
- targets: |
@ -45,7 +50,6 @@
- targets: "{{ groups['georgesand_unifi'] | list | sort }}"
roles:
- prometheus
- prometheus-alertmanager
# Monitor all hosts
- hosts: all,!unifi,!ovh