#!/usr/bin/env ansible-playbook --- - hosts: - pve - vm roles: - prometheus_node - hosts: - router roles: - prometheus_keepalived - prometheus_bird - hosts: - prom roles: - prometheus_snmp - prometheus #- hosts: prometheus-fleming.adm.auro.re # vars: # prometheus_alertmanager: docker-ovh.adm.auro.re:9093 # snmp_unifi_password: "{{ vault_snmp_unifi_password }}" # snmp_switch_community: "{{ vault_snmp_switch_community }}" # snmp_pdu_user: "{{ vault_snmp_pdu_user }}" # snmp_pdu_password: "{{ vault_snmp_pdu_password }}" # snmp_ilo_user: aurore # snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}" # snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}" # # prometheus_servers_targets: | # {{ groups['fleming_pve'] + groups['fleming_vm'] | list | sort }} # prometheus_unifi_snmp_targets: | # {{ groups['fleming_unifi'] | list | sort }} # prometheus_ilo_snmp_targets: | # {{ groups['fleming_ilo'] | list | sort }} # # update_motd: # prometheus: >- # Prometheus (en configuration fleming) est déployé (/etc/prometheus). # roles: # - prometheus # - update_motd # #- hosts: prometheus-pacaterie.adm.auro.re # vars: # prometheus_alertmanager: docker-ovh.adm.auro.re:9093 # snmp_unifi_password: "{{ vault_snmp_unifi_password }}" # snmp_switch_community: "{{ vault_snmp_switch_community }}" # snmp_pdu_user: "{{ vault_snmp_pdu_user }}" # snmp_pdu_password: "{{ vault_snmp_pdu_password }}" # snmp_ilo_user: aurore # snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}" # snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}" # # prometheus_servers_targets: | # {{ groups['pacaterie_pve'] + groups['pacaterie_vm'] | list | sort }} # prometheus_unifi_snmp_targets: | # {{ groups['pacaterie_unifi'] | list | sort }} # prometheus_ups_snmp_targets: # - ups-pn-1.ups.auro.re # - ups-ps-1.ups.auro.re # prometheus_ilo_snmp_targets: | # {{ groups['pacaterie_ilo'] | list | sort }} # # update_motd: # prometheus: >- # Prometheus (en configuration pacaterie) est déployé (/etc/prometheus). # roles: # - prometheus # - update_motd # #- hosts: prometheus-edc.adm.auro.re # vars: # prometheus_alertmanager: docker-ovh.adm.auro.re:9093 # snmp_unifi_password: "{{ vault_snmp_unifi_password }}" # snmp_switch_community: "{{ vault_snmp_switch_community }}" # snmp_pdu_user: "{{ vault_snmp_pdu_user }}" # snmp_pdu_password: "{{ vault_snmp_pdu_password }}" # snmp_ilo_user: aurore # snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}" # snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}" # # prometheus_ups_snmp_targets: # - ups-ec-1.ups.auro.re # # - ups-ec-2.ups.auro.re # - ups-ec-3.ups.auro.re # prometheus_servers_targets: | # {{ groups['edc_pve'] + groups['edc_vm'] + groups['edc_server'] | list | sort }} # prometheus_unifi_snmp_targets: | # {{ groups['edc_unifi'] | list | sort }} # prometheus_ilo_snmp_targets: | # {{ groups['edc_ilo'] | list | sort }} # # update_motd: # prometheus: >- # Prometheus (en configuration edc) est déployé (/etc/prometheus). # roles: # - prometheus # - update_motd # #- hosts: prometheus-gs.adm.auro.re # vars: # prometheus_alertmanager: docker-ovh.adm.auro.re:9093 # snmp_unifi_password: "{{ vault_snmp_unifi_password }}" # snmp_switch_community: "{{ vault_snmp_switch_community }}" # snmp_pdu_user: "{{ vault_snmp_pdu_user }}" # snmp_pdu_password: "{{ vault_snmp_pdu_password }}" # snmp_ilo_user: aurore # snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}" # snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}" # # prometheus_servers_targets: | # {{ groups['gs_pve'] + groups['gs_vm'] | list | sort }} # prometheus_unifi_snmp_targets: | # {{ groups['gs_unifi'] | list | sort }} # prometheus_ups_snmp_targets: # - ups-gk-1.ups.auro.re # prometheus_apc_pdu_snmp_targets: # - pdu-ga-1.ups.auro.re # prometheus_ilo_snmp_targets: | # {{ groups['gs_ilo'] | list | sort }} # # update_motd: # prometheus: >- # Prometheus (en configuration gs) est déployé (/etc/prometheus). # roles: # - prometheus # - update_motd # #- hosts: prometheus-rives.adm.auro.re # vars: # prometheus_alertmanager: docker-ovh.adm.auro.re:9093 # snmp_unifi_password: "{{ vault_snmp_unifi_password }}" # snmp_switch_community: "{{ vault_snmp_switch_community }}" # snmp_pdu_user: "{{ vault_snmp_pdu_user }}" # snmp_pdu_password: "{{ vault_snmp_pdu_password }}" # snmp_ilo_user: aurore # snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}" # snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}" # # prometheus_ups_snmp_targets: # - ups-r3-1.ups.auro.re # - ups-r1-1.ups.auro.re # prometheus_servers_targets: | # {{ groups['rives_pve'] + groups['rives_vm'] | list | sort }} # prometheus_unifi_snmp_targets: | # {{ groups['rives_unifi'] | list | sort }} # prometheus_ilo_snmp_targets: | # {{ groups['rives_ilo'] | list | sort }} # # update_motd: # prometheus: >- # Prometheus (en configuration rives) est déployé (/etc/prometheus). # roles: # - prometheus # - update_motd # #- hosts: prometheus-aurore.adm.auro.re # vars: # prometheus_alertmanager: docker-ovh.adm.auro.re:9093 # snmp_unifi_password: "{{ vault_snmp_unifi_password }}" # snmp_switch_community: "{{ vault_snmp_switch_community }}" # snmp_pdu_user: "{{ vault_snmp_pdu_user }}" # snmp_pdu_password: "{{ vault_snmp_pdu_password }}" # snmp_ilo_user: aurore # snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}" # snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}" # # prometheus_servers_targets: | # {{ groups['aurore_pve'] + groups['aurore_vm'] | list | sort }} # prometheus_postgresql_targets: | # {{ groups['bdd'] + groups['radius'] | list | sort }} # prometheus_switch_snmp_targets: # - 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_ilo_snmp_targets: | # {{ groups['aurore_ilo'] | list | sort }} # # update_motd: # prometheus: >- # Prometheus (en configuration aurore) est déployé (/etc/prometheus). # roles: # - prometheus # - update_motd # #- hosts: prometheus-ovh.adm.auro.re # vars: # prometheus_alertmanager: docker-ovh.adm.auro.re:9093 # snmp_unifi_password: "{{ vault_snmp_unifi_password }}" # snmp_switch_community: "{{ vault_snmp_switch_community }}" # snmp_pdu_user: "{{ vault_snmp_pdu_user }}" # snmp_pdu_password: "{{ vault_snmp_pdu_password }}" # snmp_ilo_user: aurore # snmp_ilo_auth: "{{ vault_snmp_ilo_auth }}" # snmp_ilo_priv: "{{ vault_snmp_ilo_priv }}" # # prometheus_servers_targets: | # {{ groups['ovh_pve'] + groups['ovh_vm'] | list | sort }} # prometheus_postgresql_targets: # - bdd-ovh.adm.auro.re # prometheus_docker_targets: # - docker-ovh.adm.auro.re # # update_motd: # prometheus: >- # Prometheus (en configuration ovh) est déployé (/etc/prometheus). # roles: # - prometheus # - update_motd # ## Postgres Exporters #- hosts: bdd,radius # roles: # - prometheus_postgres