Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
41d69e4f
Verified
Commit
41d69e4f
authored
2 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
[re2o-ldap] Fix replication configuration
Signed-off-by:
Yohann D'ANELLO
<
ynerant@crans.org
>
parent
f1a277a0
No related branches found
No related tags found
1 merge request
!336
Re2o-LDAP
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plays/re2o-ldap.yml
+1
-1
1 addition, 1 deletion
plays/re2o-ldap.yml
roles/re2o-ldap/tasks/main.yml
+1
-1
1 addition, 1 deletion
roles/re2o-ldap/tasks/main.yml
roles/re2o-ldap/templates/ldap/replication.ldif.j2
+2
-0
2 additions, 0 deletions
roles/re2o-ldap/templates/ldap/replication.ldif.j2
with
4 additions
and
2 deletions
plays/re2o-ldap.yml
+
1
−
1
View file @
41d69e4f
...
...
@@ -4,4 +4,4 @@
vars
:
re2o_ldap
:
"
{{
glob_re2o_ldap
|
default({})
|
combine(loc_re2o_ldap
|
default({}))
}}"
roles
:
-
re2o-ldap
-replica
-
re2o-ldap
This diff is collapsed.
Click to expand it.
roles/re2o-ldap/tasks/main.yml
+
1
−
1
View file @
41d69e4f
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
roles/re2o-ldap/templates/ldap/replication.ldif.j2
+
2
−
0
View file @
41d69e4f
{{ 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 %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment