[thelounge] Don't load ldap configuration if it is disabled

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-22 15:09:47 +01:00 committed by ynerant
parent e4bdec1dd8
commit 4c115a8b34
3 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ interfaces:
loc_certbot:
- dns_rfc2136_server: '172.16.10.147'
dns_rfc2136_name: certbot_challenge.
dns_rfc2136_secret: "{{ vault_certbot_dns_secret }}"
dns_rfc2136_secret: "{{ vault.certbot_dns_secret }}"
mail: root@crans.org
certname: crans.org
domains: "irc.crans.org"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ansible-playbook
---
# Deploy Nginx
- hosts: nginx
- hosts: nginx,!adh_server
vars:
nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}'
roles:

View File

@ -392,7 +392,7 @@ module.exports = {
// - `enable`: when set to `false`, LDAP support is disabled and all other
// values are ignored.
enable: {{ thelounge.ldap_enable }},
{% if thelounge.ldap_enable == "true" %}
// - `url`: A url of the form `ldaps://<ip>:<port>`.
// For plain connections, use the `ldap` scheme.
url: "{{ thelounge.ldap.url }}",
@ -442,6 +442,7 @@ module.exports = {
// - `scope`: LDAP search scope. It is set to `"sub"` by default.
scope: "{{ thelounge.ldap.scope }}",
},
{% endif %}
},
// ## Debugging settings