mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 04:49:40 +01:00
Solved bugs for not to internet exposed ldap
This commit is contained in:
parent
f5c9c3edba
commit
31ee369a90
@ -19,6 +19,11 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: not applications.ldap.openldap.expose_to_internet | bool
|
when: not applications.ldap.openldap.expose_to_internet | bool
|
||||||
|
|
||||||
|
- name: create docker network for LDAP, so that other applications can access it
|
||||||
|
docker_network:
|
||||||
|
name: central_ldap
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: "create {{docker_compose.files.docker_compose}}"
|
- name: "create {{docker_compose.files.docker_compose}}"
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
|
@ -25,9 +25,11 @@ services:
|
|||||||
image: bitnami/openldap:{{applications.ldap.openldap.version}}
|
image: bitnami/openldap:{{applications.ldap.openldap.version}}
|
||||||
container_name: openldap
|
container_name: openldap
|
||||||
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
||||||
|
{% if applications.ldap.openldap.expose_to_internet | bool %}
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:{{ldap_localhost_port}}:{{ldap_localhost_port}} # Expose just on localhost so that nginx stream proxy can use it
|
- 127.0.0.1:{{ldap_localhost_port}}:{{ldap_localhost_port}} # Expose just on localhost so that nginx stream proxy can use it
|
||||||
- 127.0.0.1:{{ldap_secure_localhost_port}}:{{ldap_secure_localhost_port}} # Expose just on localhost
|
- 127.0.0.1:{{ldap_secure_localhost_port}}:{{ldap_secure_localhost_port}} # Expose just on localhost
|
||||||
|
{% endif %}
|
||||||
volumes:
|
volumes:
|
||||||
- 'data:/bitnami/openldap'
|
- 'data:/bitnami/openldap'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -4,8 +4,9 @@ networks:
|
|||||||
central_{{ database_type }}:
|
central_{{ database_type }}:
|
||||||
external: true
|
external: true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ldap_network_enabled %}
|
{% if ldap_network_enabled | bool %}
|
||||||
central_ldap:
|
central_ldap:
|
||||||
|
external: true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
default:
|
default:
|
||||||
{% if application_id in networks.local and networks.local[application_id].subnet is defined %}
|
{% if application_id in networks.local and networks.local[application_id].subnet is defined %}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% if enable_central_database | bool and database_type is defined %}
|
{% if enable_central_database | bool and database_type is defined %}
|
||||||
central_{{ database_type }}:
|
central_{{ database_type }}:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ldap_network_enabled %}
|
{% if ldap_network_enabled | bool %}
|
||||||
central_ldap:
|
central_ldap:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user