guillaumewatteeux.centreon

Centreon

Ansible Centreon Rolle.

Funktionen:

  • Erstellen / Verwalten von Hosts auf der Centreon-Instanz
  • Bereitstellung von Diensten mit hostTemplate (bereits erstellt)
  • Entdeckung:
    • Bereitstellung von Diensten vom Mountpunkt
    • Bereitstellung von Diensten für Netzwerkschnittstellen

Voraussetzung

centreonapi

pip install https://github.com/guillaumewatteeux/centreon-sdk-python/releases/download/v0.0.2/centreonapi-0.0.2.tar.gz

Rollenvariablen

siehe defaults/main.yml

Beispiel-Playbook

- hosts: all
  roles:
    - role: guillaumewatteeux.centreon
      centreon_hostgroups:
        - name: "MyProject"
          alias: "Mein Erstes Projekt"
        - name: "_dev"
          alias: "Entwicklung"
      centreon_host_hostgroups:
        - "MyProject"
        - "_dev"
      tags:
        - centreon

- hosts: mysql_servers
  roles:
    - role: guillaumewatteeux.centreon
      centreon_host_hosttemplates: App-DB-MySQL-custom
      centreon_host_macros:
        - name: "MYSQLPASSWORD"
          value: "{{ vault_sql_users_passwords[ansible_fqdn]['centreon'] }}"
        - name: "MYSQLPORT"
          value: 3306
        - name: "MYSQLUSERNAME"
          value: "centreon"

Automatisch Hostgruppen für "MyProject" und "Entwicklung" erstellen. Neuen Host erstellen und mit der Hostgruppe verknüpfen.

monitoring_ip: Alternative IP für den Host festlegen (Beispiel: VPN-IP)

Lizenz

Apache 2.0

Über das Projekt

Deploy host to Centreon

Installieren
ansible-galaxy install guillaumewatteeux.centreon
GitHub Repository
Lizenz
apache-2.0
Downloads
3.1k
Besitzer