added support for edc and gs in ldap replica backup configuration

This commit is contained in:
fpoutre 2020-03-22 18:42:00 +01:00
parent b7b32dc496
commit 23f1b7a4a1
2 changed files with 24 additions and 1 deletions

14
hosts
View file

@ -159,6 +159,12 @@ gs_pve
#dns-edc.adm.auro.re #dns-edc.adm.auro.re
#dns-gs.adm.auro.re #dns-gs.adm.auro.re
[ldap_replica]
ldap_replica_fleming
ldap_replica_pacaterie
ldap_replica_edc
ldap_replica_gs
[ldap_replica_fleming] [ldap_replica_fleming]
ldap-replica-fleming.adm.auro.re ldap-replica-fleming.adm.auro.re
ldap-replica-fleming-backup.adm.auro.re ldap-replica-fleming-backup.adm.auro.re
@ -166,3 +172,11 @@ ldap-replica-fleming-backup.adm.auro.re
[ldap_replica_pacaterie] [ldap_replica_pacaterie]
ldap-replica-pacaterie.adm.auro.re ldap-replica-pacaterie.adm.auro.re
ldap-replica-pacaterie-backup.adm.auro.re ldap-replica-pacaterie-backup.adm.auro.re
[ldap_replica_edc]
ldap-replica-edc.adm.auro.re
ldap-replica-edc-backup.adm.auro.re
[ldap_replica_gs]
ldap-replica-gs.adm.auro.re
ldap-replica-gs-backup.adm.auro.re

View file

@ -15,6 +15,16 @@ uri {{ uri }}
uri ldap://{{ uri }} uri ldap://{{ uri }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if 'edc_vm' in group_names or 'edc_pve' in group_names %}
{% for uri in groups['ldap_replica_edc'] %}
uri {{ uri }}
{% endfor %}
{% endif %}
{% if 'gs_vm' in group_names or 'gs_pve' in group_names %}
{% for uri in groups['ldap_replica_gs'] %}
uri {{ uri }}
{% endfor %}
{% endif %}
uri {{ ldap_master_uri }} uri {{ ldap_master_uri }}
# The search base that will be used for all queries. # The search base that will be used for all queries.
@ -40,4 +50,3 @@ tls_cacertfile /etc/ssl/certs/ca-certificates.crt
# The search scope. # The search scope.
#scope sub #scope sub