[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:
 | 
			
		||||
    re2o_ldap: "{{ glob_re2o_ldap | default({}) | combine(loc_re2o_ldap | default({})) }}"
 | 
			
		||||
  roles:
 | 
			
		||||
    - re2o-ldap-replica
 | 
			
		||||
    - re2o-ldap
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue