Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit a19aa68

Browse files
authored
Merge pull request #2 from Diesel-Net/development
Promotion
2 parents ba81d60 + 9051027 commit a19aa68

3 files changed

Lines changed: 11 additions & 16 deletions

File tree

.ansible/deploy.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,8 @@
22

33
- hosts: tools
44
strategy: linear
5-
roles:
6-
- common
7-
85
tasks:
96

10-
- include_role:
11-
name: common
12-
tasks_from: make_config_dir
13-
14-
- include_role:
15-
name: common
16-
tasks_from: make_data_dir
17-
187
- include_role:
198
name: docker
209
tasks_from: stack_deploy
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# UID/GID auto increment starting number.
2+
# we want this relatively high so that we don't clash with other linux accounts on systems
3+
4+
auto_number:
5+
min:
6+
uid: 2000
7+
gid: 2000

.ansible/templates/docker-compose.yaml.j2

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
version: '3.8'
44
services:
55

6-
76
main:
87
image: osixia/phpldapadmin:0.9.0
98
volumes:
109
- /etc/localtime:/etc/localtime
11-
- {{ ssl_cert_dir }}:/container/service/phpldapadmin/assets/apache2/certs
10+
- {{ ssl_cert_dir }}:/container/service/ldap-client/assets/certs
1211
environment:
1312
PHPLDAPADMIN_HTTPS: 'false'
1413
PHPLDAPADMIN_LDAP_CLIENT_TLS: 'true'
15-
PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME: {{ ssl_cert_filename }}
16-
PHPLDAPADMIN_LDAP_CLIENT_TLS_REQCERT: try
17-
PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'{{ domain }}': [{'server': [{'tls': False}, {'port': 389}]},{'login': [{'bind_id': 'cn=admin,dc=diesel,dc=net'},{'bind_pass': '{{ admin_password }}'}]}]}]"
14+
PHPLDAPADMIN_LDAP_CLIENT_TLS_REQCERT: demand
15+
PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME: {{ ssl_cert_filename }}
16+
PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'{{ domain }}': [{'server': [{'tls': True}, {'port': 389}]}, {'login': [{'bind_id': 'cn=admin,dc=diesel,dc=net'}, {'bind_pass': '{{ admin_password }}'}]}, {'auto_number': [{'min': \"array('uidNumber'=>{{auto_number.min.uid}}, 'gidNumber'=>{{auto_number.min.gid}})\"}]}]}]"
1817
command: >
1918
--loglevel debug
2019
deploy:

0 commit comments

Comments
 (0)