guillaumewatteeux.centreon

Centreon

Rola Ansible Centreon.

Funkcje:

  • Tworzenie / zarządzanie hostami na instancji Centreon
  • Wdrażanie usług z szablonem hosta (wcześniej utworzonym)
  • Odkrywanie:
    • Wdrażanie usług z punktu montowania
    • Wdrażanie usług dla interfejsu sieciowego

Wymagania

centreonapi

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

Zmienne Roli

zobacz defaults/main.yml

Przykładowy Playbook

- hosts: all
  roles:
    - role: guillaumewatteeux.centreon
      centreon_hostgroups:
        - name: "MyProject"
          alias: "Mój Pierwszy Projekt"
        - name: "_dev"
          alias: "dev"
      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"

Automatyczne tworzenie grup hostów dla "MyProject" i "dev". Tworzenie nowego hosta i powiązanie z grupą hostów.

monitoring_ip: definiuje alternatywny adres IP dla hosta (np. adres IP VPN)

Licencja

Apache 2.0

O projekcie

Deploy host to Centreon

Zainstaluj
ansible-galaxy install guillaumewatteeux.centreon
Licencja
apache-2.0
Pobrania
3.1k
Właściciel