Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
05ca29d
oops. let's enable tls
tomdaley92 Jul 26, 2021
6aa8f8d
change env var key to correct one. change auto increment starting number
tomdaley92 Jul 26, 2021
fe3b115
add trailing quotes
tomdaley92 Jul 26, 2021
7296fd3
debug min array error
tomdaley92 Jul 26, 2021
2eac100
debug
tomdaley92 Jul 26, 2021
0131411
change client tls cert mount location
tomdaley92 Jul 26, 2021
7047247
render custom ca certs
tomdaley92 Jul 26, 2021
a52042e
add jinja template
tomdaley92 Jul 26, 2021
ee0e51e
Add other templates
tomdaley92 Jul 26, 2021
2cd7421
debug ca chain
tomdaley92 Jul 26, 2021
38623bc
debug
tomdaley92 Jul 26, 2021
e7cd48a
append root ca?
tomdaley92 Jul 26, 2021
9a4fdf3
add leaf cert as well. debugging
tomdaley92 Jul 26, 2021
d66acc2
starttls ?
tomdaley92 Jul 26, 2021
2c57216
debug
tomdaley92 Jul 26, 2021
8917e61
disable other certs
tomdaley92 Jul 26, 2021
f84255a
debug
tomdaley92 Jul 26, 2021
94d9604
experimenting
tomdaley92 Jul 26, 2021
c8b115e
debug
tomdaley92 Jul 26, 2021
22762e4
debug debug
tomdaley92 Jul 26, 2021
a7840ed
clean up
tomdaley92 Jul 26, 2021
30c90cb
change var names. cleanup
tomdaley92 Jul 26, 2021
12a366a
debug min auto number thingy
tomdaley92 Jul 26, 2021
ccfab55
hrmmm
tomdaley92 Jul 26, 2021
5253905
debug min auto uid/gid numbers
tomdaley92 Jul 26, 2021
9cc0e65
debug min values. they don't seem to be working
tomdaley92 Jul 26, 2021
e36b496
debug
tomdaley92 Jul 26, 2021
5f951c7
remove single quote
tomdaley92 Jul 26, 2021
872b996
debug
tomdaley92 Jul 26, 2021
9051027
got it working! needed the weird php syntax.. go figure.. clean up
tomdaley92 Jul 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .ansible/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,8 @@

- hosts: tools
strategy: linear
roles:
- common

tasks:

- include_role:
name: common
tasks_from: make_config_dir

- include_role:
name: common
tasks_from: make_data_dir

- include_role:
name: docker
tasks_from: stack_deploy
Expand Down
7 changes: 7 additions & 0 deletions .ansible/group_vars/all/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# UID/GID auto increment starting number.
# we want this relatively high so that we don't clash with other linux accounts on systems

auto_number:
min:
uid: 2000
gid: 2000
9 changes: 4 additions & 5 deletions .ansible/templates/docker-compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
version: '3.8'
services:


main:
image: osixia/phpldapadmin:0.9.0
volumes:
- /etc/localtime:/etc/localtime
- {{ ssl_cert_dir }}:/container/service/phpldapadmin/assets/apache2/certs
- {{ ssl_cert_dir }}:/container/service/ldap-client/assets/certs
environment:
PHPLDAPADMIN_HTTPS: 'false'
PHPLDAPADMIN_LDAP_CLIENT_TLS: 'true'
PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME: {{ ssl_cert_filename }}
PHPLDAPADMIN_LDAP_CLIENT_TLS_REQCERT: try
PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'{{ domain }}': [{'server': [{'tls': False}, {'port': 389}]},{'login': [{'bind_id': 'cn=admin,dc=diesel,dc=net'},{'bind_pass': '{{ admin_password }}'}]}]}]"
PHPLDAPADMIN_LDAP_CLIENT_TLS_REQCERT: demand
PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME: {{ ssl_cert_filename }}
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}})\"}]}]}]"
command: >
--loglevel debug
deploy:
Expand Down