Browse Source

roles/icinga2: support for backup ldap servers

python3
Zolfa 5 years ago
parent
commit
5efe297f0c
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      roles/icinga2/defaults/main.yaml
  2. +1
    -1
      roles/icinga2/templates/icingaweb2/resources.ini.j2

+ 1
- 0
roles/icinga2/defaults/main.yaml View File

@ -2,6 +2,7 @@
host_fqdn: '{{ ansible_hostname }}.dmz.{{ domain }}' host_fqdn: '{{ ansible_hostname }}.dmz.{{ domain }}'
icingaweb2_nginx_fqdn: '{{ ansible_hostname }}.{{ domain }}' icingaweb2_nginx_fqdn: '{{ ansible_hostname }}.{{ domain }}'
ldap_server: 'ldap1.dmz.{{ domain }}' ldap_server: 'ldap1.dmz.{{ domain }}'
ldap_backup_servers: []
ldap_basedn: 'dc={{ domain.replace(".", ",dc=") }}' ldap_basedn: 'dc={{ domain.replace(".", ",dc=") }}'
ldap_tls_enabled: true ldap_tls_enabled: true
ldap_tls_server_ca: '{{ tls_root_ca }}' ldap_tls_server_ca: '{{ tls_root_ca }}'


+ 1
- 1
roles/icinga2/templates/icingaweb2/resources.ini.j2 View File

@ -1,6 +1,6 @@
[icingaweb2-users-ldap] [icingaweb2-users-ldap]
type = "ldap" type = "ldap"
hostname = "{{ ldap_server }}"
hostname = "{{ ldap_server }}{% for s in ldap_backup_servers %} {{s}}{%endfor%}"
port = "389" port = "389"
encryption = "starttls" encryption = "starttls"
root_dn = "{{ ldap_basedn }}" root_dn = "{{ ldap_basedn }}"


Loading…
Cancel
Save