2020-05-03 18:45:07 +02:00
|
|
|
#!/usr/bin/env ansible-playbook
|
2019-05-05 14:07:04 +02:00
|
|
|
---
|
2021-02-18 17:53:15 +01:00
|
|
|
- hosts: prometheus-fleming.adm.auro.re
|
2019-07-26 22:47:10 +02:00
|
|
|
vars:
|
2019-11-01 15:38:35 +01:00
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
2019-11-01 19:02:21 +01:00
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-03-10 12:58:51 +01:00
|
|
|
snmp_switch_community: "{{ vault_snmp_switch_community }}"
|
2021-08-20 18:22:00 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 17:27:36 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2019-11-01 15:38:35 +01:00
|
|
|
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets: |
|
|
|
|
{{ groups['fleming_pve'] + groups['fleming_vm'] | list | sort }}
|
|
|
|
prometheus_unifi_snmp_targets: |
|
|
|
|
{{ groups['fleming_unifi'] | list | sort }}
|
|
|
|
prometheus_ipmi_targets: |
|
|
|
|
{{ groups['fleming_pve'] + groups['fleming_server'] | list | sort }}
|
2021-12-31 20:03:04 +01:00
|
|
|
prometheus_ilo_snmp_targets: |
|
2021-12-31 18:31:58 +01:00
|
|
|
{{ groups['fleming_ilo'] | list | sort }}
|
2021-12-31 15:08:44 +01:00
|
|
|
|
2021-11-27 19:20:32 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus: >-
|
|
|
|
Prometheus (en configuration fleming) est déployé (/etc/prometheus).
|
2019-07-26 22:47:10 +02:00
|
|
|
roles:
|
|
|
|
- prometheus
|
2021-11-27 19:20:32 +01:00
|
|
|
- update_motd
|
2019-07-26 22:47:10 +02:00
|
|
|
|
2021-01-22 18:20:13 +01:00
|
|
|
- hosts: prometheus-pacaterie.adm.auro.re
|
2019-05-05 14:07:04 +02:00
|
|
|
vars:
|
2019-11-01 15:38:35 +01:00
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
2019-11-01 19:02:21 +01:00
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-03-10 12:58:51 +01:00
|
|
|
snmp_switch_community: "{{ vault_snmp_switch_community }}"
|
2021-08-20 18:22:00 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 19:38:35 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2019-11-01 15:38:35 +01:00
|
|
|
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets: |
|
|
|
|
{{ groups['pacaterie_pve'] + groups['pacaterie_vm'] | list | sort }}
|
|
|
|
prometheus_unifi_snmp_targets: |
|
|
|
|
{{ groups['pacaterie_unifi'] | list | sort }}
|
2021-01-22 18:20:13 +01:00
|
|
|
prometheus_ups_snmp_targets:
|
2021-01-29 20:12:14 +01:00
|
|
|
- ups-pn-1.ups.auro.re
|
2021-03-10 12:53:28 +01:00
|
|
|
- ups-ps-1.ups.auro.re
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_ipmi_targets: |
|
|
|
|
{{ groups['pacaterie_pve'] | list | sort }}
|
2021-12-31 20:03:27 +01:00
|
|
|
prometheus_ilo_snmp_targets: |
|
|
|
|
{{ groups['pacaterie_ilo'] | list | sort }}
|
2021-12-31 15:08:44 +01:00
|
|
|
|
2021-11-27 19:20:32 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus: >-
|
|
|
|
Prometheus (en configuration pacaterie) est déployé (/etc/prometheus).
|
2019-11-01 15:17:59 +01:00
|
|
|
roles:
|
2021-01-29 20:12:14 +01:00
|
|
|
- prometheus
|
2021-11-27 19:20:32 +01:00
|
|
|
- update_motd
|
2019-11-01 15:17:59 +01:00
|
|
|
|
2021-01-06 17:46:09 +01:00
|
|
|
- hosts: prometheus-edc.adm.auro.re
|
2019-11-01 15:17:59 +01:00
|
|
|
vars:
|
2019-11-01 15:38:35 +01:00
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
2019-11-01 19:02:21 +01:00
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-03-10 12:58:51 +01:00
|
|
|
snmp_switch_community: "{{ vault_snmp_switch_community }}"
|
2021-08-20 18:22:00 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 19:38:35 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2019-11-01 15:38:35 +01:00
|
|
|
|
2021-01-21 21:26:40 +01:00
|
|
|
prometheus_ups_snmp_targets:
|
2021-01-29 20:12:14 +01:00
|
|
|
- ups-ec-1.ups.auro.re
|
2022-01-01 11:58:33 +01:00
|
|
|
# - ups-ec-2.ups.auro.re
|
2021-04-07 16:55:35 +02:00
|
|
|
- ups-ec-3.ups.auro.re
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets: |
|
|
|
|
{{ groups['edc_pve'] + groups['edc_vm'] + groups['edc_server'] | list | sort }}
|
|
|
|
prometheus_unifi_snmp_targets: |
|
|
|
|
{{ groups['edc_unifi'] | list | sort }}
|
|
|
|
prometheus_ipmi_targets: |
|
|
|
|
{{ groups['edc_pve'] + groups['edc_server'] | list | sort }}
|
2021-12-31 20:03:27 +01:00
|
|
|
prometheus_ilo_snmp_targets: |
|
|
|
|
{{ groups['edc_ilo'] | list | sort }}
|
2021-01-21 21:26:40 +01:00
|
|
|
|
2021-11-27 19:20:32 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus: >-
|
|
|
|
Prometheus (en configuration edc) est déployé (/etc/prometheus).
|
2019-11-01 15:17:59 +01:00
|
|
|
roles:
|
|
|
|
- prometheus
|
2021-11-27 19:20:32 +01:00
|
|
|
- update_motd
|
2019-11-01 15:17:59 +01:00
|
|
|
|
2021-01-08 22:43:18 +01:00
|
|
|
- hosts: prometheus-gs.adm.auro.re
|
2019-11-01 15:17:59 +01:00
|
|
|
vars:
|
2019-11-01 15:38:35 +01:00
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
2019-11-01 19:02:21 +01:00
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-03-10 12:58:51 +01:00
|
|
|
snmp_switch_community: "{{ vault_snmp_switch_community }}"
|
2021-08-20 16:58:28 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 19:38:35 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2019-11-01 15:38:35 +01:00
|
|
|
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets: |
|
|
|
|
{{ groups['gs_pve'] + groups['gs_vm'] | list | sort }}
|
|
|
|
prometheus_unifi_snmp_targets: |
|
|
|
|
{{ groups['gs_unifi'] | list | sort }}
|
2021-01-26 19:18:35 +01:00
|
|
|
prometheus_ups_snmp_targets:
|
|
|
|
- ups-gk-1.ups.auro.re
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_apc_pdu_snmp_targets:
|
2021-08-20 12:17:17 +02:00
|
|
|
- pdu-ga-1.ups.auro.re
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_ipmi_targets: |
|
|
|
|
{{ groups['gs_pve'] | list | sort }}
|
2021-12-31 20:03:27 +01:00
|
|
|
prometheus_ilo_snmp_targets: |
|
|
|
|
{{ groups['gs_ilo'] | list | sort }}
|
2021-12-31 15:08:44 +01:00
|
|
|
|
2021-11-27 19:20:32 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus: >-
|
|
|
|
Prometheus (en configuration gs) est déployé (/etc/prometheus).
|
2019-05-05 14:07:04 +02:00
|
|
|
roles:
|
|
|
|
- prometheus
|
2021-11-27 19:20:32 +01:00
|
|
|
- update_motd
|
2019-05-05 14:07:04 +02:00
|
|
|
|
2021-01-23 19:01:27 +01:00
|
|
|
- hosts: prometheus-rives.adm.auro.re
|
|
|
|
vars:
|
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-03-10 12:58:51 +01:00
|
|
|
snmp_switch_community: "{{ vault_snmp_switch_community }}"
|
2021-08-20 18:22:00 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 19:38:35 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2021-01-23 19:01:27 +01:00
|
|
|
|
|
|
|
prometheus_ups_snmp_targets:
|
2021-01-29 20:12:14 +01:00
|
|
|
- ups-r3-1.ups.auro.re
|
2021-04-10 16:58:48 +02:00
|
|
|
- ups-r1-1.ups.auro.re
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets: |
|
|
|
|
{{ groups['rives_pve'] + groups['rives_vm'] | list | sort }}
|
|
|
|
prometheus_unifi_snmp_targets: |
|
|
|
|
{{ groups['rives_unifi'] | list | sort }}
|
|
|
|
prometheus_ipmi_targets: |
|
|
|
|
{{ groups['rives_pve'] | list | sort }}
|
2021-12-31 20:03:27 +01:00
|
|
|
prometheus_ilo_snmp_targets: |
|
|
|
|
{{ groups['rives_ilo'] | list | sort }}
|
2021-01-23 19:01:27 +01:00
|
|
|
|
2021-11-27 19:20:32 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus: >-
|
|
|
|
Prometheus (en configuration rives) est déployé (/etc/prometheus).
|
2021-01-23 19:01:27 +01:00
|
|
|
roles:
|
|
|
|
- prometheus
|
2021-11-27 19:20:32 +01:00
|
|
|
- update_motd
|
2021-01-23 19:01:27 +01:00
|
|
|
|
2021-01-23 22:10:57 +01:00
|
|
|
- hosts: prometheus-aurore.adm.auro.re
|
|
|
|
vars:
|
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-03-06 01:58:02 +01:00
|
|
|
snmp_switch_community: "{{ vault_snmp_switch_community }}"
|
2021-08-20 18:22:00 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 19:38:35 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2021-01-23 22:10:57 +01:00
|
|
|
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets: |
|
|
|
|
{{ groups['aurore_pve'] + groups['aurore_vm'] | list | sort }}
|
|
|
|
prometheus_postgresql_targets: |
|
|
|
|
{{ groups['bdd'] + groups['radius'] | list | sort }}
|
2021-03-06 01:58:02 +01:00
|
|
|
prometheus_switch_snmp_targets:
|
2021-12-31 15:08:44 +01:00
|
|
|
- yggdrasil.switch.auro.re
|
|
|
|
- sw-pn-serveurs.switch.auro.re
|
|
|
|
- sw-ec-serveurs.switch.auro.re
|
|
|
|
- sw-gk-serveurs.switch.auro.re
|
|
|
|
- sw-fl-serveurs.switch.auro.re
|
|
|
|
- sw-ff-uplink.switch.auro.re
|
|
|
|
- sw-fl-core.switch.auro.re
|
|
|
|
- sw-fd-vcore.switch.auro.re
|
|
|
|
- sw-fl-vcore.switch.auro.re
|
|
|
|
- sw-ff-vcore.switch.auro.re
|
|
|
|
- sw-pn-core.switch.auro.re
|
|
|
|
- sw-ec-core.switch.auro.re
|
|
|
|
- sw-gk-core.switch.auro.re
|
|
|
|
- sw-r3-core.switch.auro.re
|
|
|
|
prometheus_ipmi_targets: |
|
|
|
|
{{ groups['aurore_pve'] | list | sort }}
|
2021-12-31 20:03:27 +01:00
|
|
|
prometheus_ilo_snmp_targets: |
|
|
|
|
{{ groups['aurore_ilo'] | list | sort }}
|
2021-12-31 15:08:44 +01:00
|
|
|
|
2021-11-27 19:20:32 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus: >-
|
|
|
|
Prometheus (en configuration aurore) est déployé (/etc/prometheus).
|
2021-01-23 22:10:57 +01:00
|
|
|
roles:
|
|
|
|
- prometheus
|
2021-11-27 19:20:32 +01:00
|
|
|
- update_motd
|
2021-01-23 22:10:57 +01:00
|
|
|
|
2021-02-10 18:40:28 +01:00
|
|
|
- hosts: prometheus-ovh.adm.auro.re
|
|
|
|
vars:
|
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-03-11 13:23:15 +01:00
|
|
|
snmp_switch_community: "{{ vault_snmp_switch_community }}"
|
2021-08-20 18:22:00 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 19:38:35 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2021-02-10 18:40:28 +01:00
|
|
|
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets: |
|
|
|
|
{{ groups['ovh_pve'] + groups['ovh_vm'] | list | sort }}
|
|
|
|
prometheus_postgresql_targets:
|
|
|
|
- bdd-ovh.adm.auro.re
|
2021-02-10 19:06:28 +01:00
|
|
|
prometheus_docker_targets:
|
2021-04-14 20:11:23 +02:00
|
|
|
- docker-ovh.adm.auro.re
|
2021-12-31 15:08:44 +01:00
|
|
|
|
2021-11-27 19:20:32 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus: >-
|
|
|
|
Prometheus (en configuration ovh) est déployé (/etc/prometheus).
|
2021-02-10 18:40:28 +01:00
|
|
|
roles:
|
|
|
|
- prometheus
|
2021-11-27 19:20:32 +01:00
|
|
|
- update_motd
|
2021-01-23 19:01:27 +01:00
|
|
|
|
2021-02-10 20:12:04 +01:00
|
|
|
- hosts: prometheus-federate.adm.auro.re
|
|
|
|
vars:
|
|
|
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
|
|
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
2021-08-20 18:22:00 +02:00
|
|
|
snmp_pdu_user: "{{ vault_snmp_pdu_user }}"
|
|
|
|
snmp_pdu_password: "{{ vault_snmp_pdu_password }}"
|
2021-12-31 19:38:35 +01:00
|
|
|
snmp_ilo_user: aurore
|
|
|
|
snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}"
|
|
|
|
snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}"
|
2021-02-10 20:12:04 +01:00
|
|
|
|
2021-12-31 15:08:44 +01:00
|
|
|
prometheus_servers_targets:
|
2021-02-10 20:12:04 +01:00
|
|
|
- prometheus-edc.adm.auro.re
|
|
|
|
- prometheus-gs.adm.auro.re
|
|
|
|
- prometheus-fleming.adm.auro.re
|
|
|
|
- prometheus-pacaterie.adm.auro.re
|
|
|
|
- prometheus-rives.adm.auro.re
|
2021-02-10 20:42:37 +01:00
|
|
|
- prometheus-aurore.adm.auro.re
|
|
|
|
- prometheus-ovh.adm.auro.re
|
2021-12-31 15:08:44 +01:00
|
|
|
|
2021-11-27 19:16:11 +01:00
|
|
|
update_motd:
|
|
|
|
prometheus_federate: >-
|
|
|
|
Prometheus (en configuration fédération) est déployé (/etc/prometheus).
|
2021-02-10 20:12:04 +01:00
|
|
|
roles:
|
2021-02-17 17:42:24 +01:00
|
|
|
- prometheus_federate
|
2021-11-27 19:16:11 +01:00
|
|
|
- update_motd
|
2021-02-10 20:12:04 +01:00
|
|
|
|
2021-04-12 10:01:39 +02:00
|
|
|
# Postgres Exporters
|
2021-04-11 21:29:02 +02:00
|
|
|
- hosts: bdd,radius
|
2021-04-10 17:29:50 +02:00
|
|
|
roles:
|
|
|
|
- prometheus_postgres
|
|
|
|
|
2019-05-05 14:07:04 +02:00
|
|
|
# Monitor all hosts
|
2021-01-23 22:10:57 +01:00
|
|
|
- hosts: all,!edc_unifi,!fleming_unifi,!pacaterie_unifi,!gs_unifi,!rives_unifi,!aurore_testing_vm,!ovh_container
|
2019-05-05 14:07:04 +02:00
|
|
|
roles:
|
2020-11-04 19:36:40 +01:00
|
|
|
- prometheus_node
|