[re2o-ldap] Fix replication configuration
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
							parent
							
								
									f1a277a050
								
							
						
					
					
						commit
						41d69e4f96
					
				| 
						 | 
					@ -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 @@
 | 
				
			||||||
    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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
{{ 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
 | 
				
			||||||
-
 | 
					-
 | 
				
			||||||
add: olcUpdateRef
 | 
					add: olcUpdateRef
 | 
				
			||||||
olcUpdateRef: {{ re2o_ldap.url }}
 | 
					olcUpdateRef: {{ re2o_ldap.url }}
 | 
				
			||||||
 | 
					{% endif %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue