Skip to content
Snippets Groups Projects
Verified Commit 41d69e4f authored by ynerant's avatar ynerant
Browse files

[re2o-ldap] Fix replication configuration


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent f1a277a0
No related branches found
No related tags found
1 merge request!336Re2o-LDAP
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
vars: vars:
re2o_ldap: "{{ glob_re2o_ldap | default({}) | combine(loc_re2o_ldap | default({})) }}" re2o_ldap: "{{ glob_re2o_ldap | default({}) | combine(loc_re2o_ldap | default({})) }}"
roles: roles:
- re2o-ldap-replica - re2o-ldap
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
state: started state: started
- name: Enable data replication - 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 shell: ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /var/lib/slapd/replication.ldif
# LDAPS configuration # LDAPS configuration
......
{{ ansible_header | comment }} {{ ansible_header | comment }}
{% if re2o_ldap.replica is defined %}
dn: olcDatabase={1}hdb,cn=config dn: olcDatabase={1}hdb,cn=config
changetype: modify changetype: modify
add: olcSyncrepl add: olcSyncrepl
...@@ -19,3 +20,4 @@ olcSyncrepl: rid=1 ...@@ -19,3 +20,4 @@ olcSyncrepl: rid=1
- -
add: olcUpdateRef add: olcUpdateRef
olcUpdateRef: {{ re2o_ldap.url }} olcUpdateRef: {{ re2o_ldap.url }}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment