Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
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
infrastruktur
ansible-warpzone
Commits
f551b44b
Commit
f551b44b
authored
5 years ago
by
Christian Elberfeld
Browse files
Options
Downloads
Patches
Plain Diff
LDAP Replikation
parent
a8db2547
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/docker_ldap/templates/docker-compose.yml
+18
-21
18 additions, 21 deletions
common/docker_ldap/templates/docker-compose.yml
site.yml
+2
-2
2 additions, 2 deletions
site.yml
with
20 additions
and
23 deletions
common/docker_ldap/templates/docker-compose.yml
+
18
−
21
View file @
f551b44b
...
@@ -7,8 +7,7 @@ services:
...
@@ -7,8 +7,7 @@ services:
image
:
osixia/openldap:1.3.0
image
:
osixia/openldap:1.3.0
restart
:
always
restart
:
always
command
:
--loglevel debug
command
:
--loglevel debug
# hostname: {{ inventory_hostname }}-sync
hostname
:
{{
inventory_hostname
}}
-sync
network_mode
:
host
extra_hosts
:
extra_hosts
:
-
"
webserver-sync{%
if
inventory_hostname
==
"webserver" %}-dummy{% endif %}:{{ hostvars['webserver'].int_ip4 }}"
-
"
webserver-sync{%
if
inventory_hostname
==
"webserver" %}-dummy{% endif %}:{{ hostvars['webserver'].int_ip4 }}"
-
"
warpsrvint-sync{%
if
inventory_hostname
==
"warpsrvint" %}-dummy{% endif %}:{{ hostvars['warpsrvint'].int_ip4 }}"
-
"
warpsrvint-sync{%
if
inventory_hostname
==
"warpsrvint" %}-dummy{% endif %}:{{ hostvars['warpsrvint'].int_ip4 }}"
...
@@ -16,12 +15,11 @@ services:
...
@@ -16,12 +15,11 @@ services:
volumes
:
volumes
:
-
/srv/ldap/database:/var/lib/ldap
-
/srv/ldap/database:/var/lib/ldap
-
/srv/ldap/config:/etc/ldap/slapd.d
-
/srv/ldap/config:/etc/ldap/slapd.d
#
ports:
ports
:
#
- {{ int_ip4 }}:389:389
-
{{
int_ip4
}}
:389:389
#
- {{ int_ip4 }}:636:636
-
{{
int_ip4
}}
:636:636
environment
:
environment
:
-
HOSTNAME={{ int_ip4 }}
-
HOSTNAME={{ inventory_hostname }}-sync
# - HOSTNAME={{ inventory_hostname }}-sync
-
LDAP_BACKEND=hdb
-
LDAP_BACKEND=hdb
-
LDAP_ORGANISATION={{ ldap_org }}
-
LDAP_ORGANISATION={{ ldap_org }}
-
LDAP_DOMAIN={{ ldap_domain }}
-
LDAP_DOMAIN={{ ldap_domain }}
...
@@ -32,8 +30,8 @@ services:
...
@@ -32,8 +30,8 @@ services:
-
LDAP_READONLY_USER_PASSWORD={{ ldap_readonly_pass }}
-
LDAP_READONLY_USER_PASSWORD={{ ldap_readonly_pass }}
-
LDAP_TLS_VERIFY_CLIENT=never
-
LDAP_TLS_VERIFY_CLIENT=never
-
LDAP_REPLICATION=false
-
LDAP_REPLICATION=false
#
- LDAP_REPLICATION=true
-
LDAP_REPLICATION=true
#
- LDAP_REPLICATION_HOSTS=#PYTHON2BASH:['ldap://webserver-sync','ldap://warpsrvint-sync','ldap://verwaltung-sync']
-
LDAP_REPLICATION_HOSTS=#PYTHON2BASH:['ldap://webserver-sync','ldap://warpsrvint-sync','ldap://verwaltung-sync']
phpldapadmin
:
phpldapadmin
:
image
:
osixia/phpldapadmin:0.9.0
image
:
osixia/phpldapadmin:0.9.0
...
@@ -43,18 +41,17 @@ services:
...
@@ -43,18 +41,17 @@ services:
ports
:
ports
:
-
127.0.0.1:42004:80
-
127.0.0.1:42004:80
environment
:
environment
:
-
PHPLDAPADMIN_LDAP_HOSTS={{ int_ip4 }}
-
PHPLDAPADMIN_LDAP_HOSTS=openldap
# - PHPLDAPADMIN_LDAP_HOSTS=openldap
-
PHPLDAPADMIN_HTTPS=false
-
PHPLDAPADMIN_HTTPS=false
-
PHPLDAPADMIN_TRUST_PROXY_SSL=true
-
PHPLDAPADMIN_TRUST_PROXY_SSL=true
#
syncreplexporter:
syncreplexporter
:
#
build: .
build
:
.
#
image: "syncreplexporter--{{ ansible_date_time.date }}--{{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}-{{ ansible_date_time.second }}"
image
:
"
syncreplexporter--{{
ansible_date_time.date
}}--{{
ansible_date_time.hour
}}-{{
ansible_date_time.minute
}}-{{
ansible_date_time.second
}}"
#
restart: always
restart
:
always
#
depends_on:
depends_on
:
#
- openldap
-
openldap
#
volumes:
volumes
:
#
- /srv/ldap/syncrepl_exporter.yml:/syncrepl_exporter.yml
-
/srv/ldap/syncrepl_exporter.yml:/syncrepl_exporter.yml
#
ports:
ports
:
#
- {{ int_ip4 }}:9328:9328
-
{{
int_ip4
}}
:9328:9328
This diff is collapsed.
Click to expand it.
site.yml
+
2
−
2
View file @
f551b44b
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
-
{
role
:
common/borgserver
,
tags
:
borgserver
}
-
{
role
:
common/borgserver
,
tags
:
borgserver
}
-
{
role
:
common/docker
,
tags
:
docker
}
-
{
role
:
common/docker
,
tags
:
docker
}
-
{
role
:
common/telegraf
,
tags
:
telegraf
}
-
{
role
:
common/telegraf
,
tags
:
telegraf
}
#
- { role: common/docker_ldap, tags: ldap }
-
{
role
:
common/docker_ldap
,
tags
:
ldap
}
-
{
role
:
common/nginx
,
tags
:
nginx
}
-
{
role
:
common/nginx
,
tags
:
nginx
}
-
{
role
:
warpsrvint/docker_grafana
,
tags
:
grafana
}
-
{
role
:
warpsrvint/docker_grafana
,
tags
:
grafana
}
-
{
role
:
warpsrvint/docker_influx
,
tags
:
influx
}
-
{
role
:
warpsrvint/docker_influx
,
tags
:
influx
}
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
-
{
role
:
common/docker
,
tags
:
docker
}
-
{
role
:
common/docker
,
tags
:
docker
}
-
{
role
:
common/nginx
,
tags
:
nginx
}
-
{
role
:
common/nginx
,
tags
:
nginx
}
-
{
role
:
common/openvpn
,
tags
:
openvpn
}
-
{
role
:
common/openvpn
,
tags
:
openvpn
}
#
- { role: common/docker_ldap, tags: ldap }
-
{
role
:
common/docker_ldap
,
tags
:
ldap
}
-
{
role
:
verwaltung/docker_gitea
,
tags
:
gitea
}
-
{
role
:
verwaltung/docker_gitea
,
tags
:
gitea
}
-
{
role
:
verwaltung/docker_nextcloud
,
tags
:
nextcloud
}
-
{
role
:
verwaltung/docker_nextcloud
,
tags
:
nextcloud
}
-
{
role
:
verwaltung/docker_mysql
,
tags
:
mysql
}
-
{
role
:
verwaltung/docker_mysql
,
tags
:
mysql
}
...
...
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