[re2o-ldap] Fix replication configuration

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2022-04-04 16:33:04 +02:00
parent f1a277a050
commit 41d69e4f96
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 4 additions and 2 deletions

View File

@ -4,4 +4,4 @@
vars:
re2o_ldap: "{{ glob_re2o_ldap | default({}) | combine(loc_re2o_ldap | default({})) }}"
roles:
- re2o-ldap-replica
- re2o-ldap

View File

@ -77,7 +77,7 @@
state: started
- name: Enable data replication
when: not installation.stat.exists and re2o_ldap.replica exists
when: not installation.stat.exists and re2o_ldap.replica is defined
shell: ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /var/lib/slapd/replication.ldif
# LDAPS configuration

View File

@ -1,5 +1,6 @@
{{ ansible_header | comment }}
{% if re2o_ldap.replica is defined %}
dn: olcDatabase={1}hdb,cn=config
changetype: modify
add: olcSyncrepl
@ -19,3 +20,4 @@ olcSyncrepl: rid=1
-
add: olcUpdateRef
olcUpdateRef: {{ re2o_ldap.url }}
{% endif %}