adfinis-sygroup.icinga2_web

GitHub Readme

ROLLEN ICINGA2_WEB

Bild

Bild

Bild

Diese Rolle installiert und konfiguriert icingaweb2.

Voraussetzungen

Um von dieser Rolle zu profitieren, benötigen Sie einen installierten Webserver auf dem System. Bei Adfinis verwenden wir die folgende Rolle:

Abhängigkeiten der Rolle

Diese Rolle hat folgende Abhängigkeiten:

roles:
- name: 'adfinis.icinga2_agent'

collections:
  - ansible.posix
  - community.general
  - community.mysql
  - robertdebock.roles

Um alle Abhängigkeiten korrekt zu installieren, müssen Sie eine requirements.yml in Ihrem Projekt mit obigem Inhalt erstellen.

Rollenvariablen

# Das Passwort für die icingaweb2 Web-Oberfläche
icinga2_web_admin_pass: 'passw0rd'

# icinga2 API Host
icinga2_web_api_host: 127.0.0.1

# icinga2 API Port
icinga2_web_api_port: 5665

# icinga2 API Benutzer
icinga2_web_api_user: icingaweb2

# icinga2 API Passwort
icinga2_web_api_pass: 'passw0rd'


## icingaweb2 Datenbankeinstellungen
# Der Name der icingaweb2 Datenbank
icinga2_web_icingaweb2_database_name: icingaweb2

# Der Benutzer der icingaweb2 Datenbank
icinga2_web_icingaweb2_database_user: icingaweb2

# Das Passwort der icingaweb2 Datenbank
icinga2_web_icingaweb2_database_pass: 'passw0rd'

# Der Host der icingaweb2 Datenbank
icinga2_web_icingaweb2_database_host: 127.0.0.1

# Der Port der icingaweb2 Datenbank
icinga2_web_icingaweb2_database_port: 3306


## Icinga2 Datenbankeinstellungen
# icinga2 Datenbankname
icinga2_web_icinga2_database_name: icinga2
#
# icinga2 Datenbankhost
icinga2_web_icinga2_database_host: 127.0.0.1

# icinga2 Datenbankport
icinga2_web_icinga2_database_port: 3306

# icinga2 Datenbankbenutzer
icinga2_web_icinga2_database_user: icinga2

# icinga2 Datenbankpasswort
icinga2_web_icinga2_database_pass: 'passw0rd'

LDAP-Authentifizierung

Um die LDAP-Authentifizierung zu konfigurieren, müssen die folgenden Variablen konfiguriert werden. Es ist möglich, mehrere Konfigurationsbackends zu aktivieren.

# Icingaweb2 LDAP-Authentifizierung
# Für weitere Informationen, konsultieren Sie die offizielle icingaweb2-Dokumentation unter
# https://icinga.com/docs/icingaweb2/latest/doc/04-Resources/#ldap
#icinga2_web_ldap:
#  - name: res_ldap_example_com
#    host: ldap.example.com
#    port: 636
#    encryption: ldaps
#    root_dn: 'cn=accounts,dc=ldap,dc=example,dc=com'
#    bind_dn: 'uid=icingaweb2.auth,cn=systems,dc=ldap,dc=example,dc=com'
#    bind_pw: 'ldap password'
#    timeout: 5
# Icingaweb2 LDAP-Benutzerkonfiguration
# Für weitere Informationen, konsultieren Sie die offizielle icingaweb2-Dokumentation unter
# https://icinga.com/docs/icingaweb2/latest/doc/05-Authentication/#ldap
#
#icinga2_web_ldap_userconf:
#  - name: user_ldap_example_com # erforderlich
#    resource: 'res_ldap_example_com' # erforderlich
#    user_class: 'inetOrgPerson' # erforderlich
#    user_name_attribute: 'uid' # erforderlich
#    base_dn: 'cn=accounts,dc=ldap,dc=example,dc=com' # optional
#    filter: "(somefilter)" # optional

icinga2_web_ldap_userconf: []
# Icingaweb2 LDAP-Gruppenkonfiguration
# Für weitere Informationen, konsultieren Sie die offizielle icingaweb2-Dokumentation unter
# https://icinga.com/docs/icingaweb2/latest/doc/05-Authentication/#ldap-groups
#
#icinga2_web_ldap_groupconf:
#  - name: group_ldap_example_com # erforderlich
#    resource: 'res_ldap_example_com' # erforderlich
#    user_backend = "user_ldap_examle_com" # erforderlich
#    user_class: 'user' # optional
#    user_name_attribute: 'uid' # optional
#    group_class: 'group' # optional
#    group_name_attribute: 'gid' # optional
#    group_member_attribute: 'memberUid' # optional
#    group_filter: '(somefilter)' # optional

Icingaweb2 Berechtigungen

# Icinga2 Berechtigungen Konfiguration
# Für weitere Informationen, konsultieren Sie die offizielle icingaweb2-Dokumentation unter
# https://icinga.com/docs/icingaweb2/latest/doc/06-Security/#configuration
#
#icinga2_web_permissions:
#  - name: Administrators
#    users:
#      - admin
#    groups:
#      - Administrators
#    permissions:
#      '*'
#    object_filter: ""
#  - name: customer
#    users:
#      - customer1
#    permissions:
#      'monitoring/command/*,module/*'
#    object_filter: 'host_name=*.customer.example.com"'

Beispiel-Playbook

- hosts: servers
  roles:
     - { role: adfinis.icinga2_web }

Lizenz

GPL-3.0

Autor-Informationen

Die icinga2_web Rolle wurde von:

Über das Projekt

This role installs and configures icingaweb2

Installieren
ansible-galaxy install adfinis-sygroup.icinga2_web
GitHub Repository
Lizenz
gpl-3.0
Downloads
4k
Besitzer
Adfinis SyGroup was rebranded to Adfinis, follow the link below: