diff --git a/hosts b/hosts index eb1a0fb..68e744a 100644 --- a/hosts +++ b/hosts @@ -55,7 +55,7 @@ passbolt.adm.auro.re vpn-ovh.adm.auro.re docker-ovh.adm.auro.re switchs-manager.adm.auro.re - +ldap-replica-ovh.adm.auro.re [ovh_testing_vm] #re2o-test.adm.auro.re @@ -231,6 +231,7 @@ ldap_replica_fleming ldap_replica_pacaterie ldap_replica_edc ldap_replica_gs +ldap_replica_ovh [ldap_replica_fleming] ldap-replica-fleming.adm.auro.re @@ -243,3 +244,6 @@ ldap-replica-edc.adm.auro.re [ldap_replica_gs] ldap-replica-gs.adm.auro.re + +[ldap_replica_ovh] +ldap-replica-ovh.adm.auro.re diff --git a/roles/ldap-client/templates/nslcd.conf.j2 b/roles/ldap-client/templates/nslcd.conf.j2 index 00a3f2e..e1e362b 100644 --- a/roles/ldap-client/templates/nslcd.conf.j2 +++ b/roles/ldap-client/templates/nslcd.conf.j2 @@ -25,6 +25,11 @@ uri ldap://{{ uri }} uri ldap://{{ uri }} {% endfor %} {% endif %} +{% if 'ovh_vm' in group_names or 'ovh_container' in group_names or 'ovh_pve' in group_names %} +{% for uri in groups['ldap_replica_ovh'] %} +uri ldap://{{ uri }} +{% endfor %} +{% endif %} uri {{ ldap_master_uri }} # The search base that will be used for all queries.