diff --git a/roles/lemonldap_ng/defaults/main.yml b/roles/lemonldap_ng/defaults/main.yml index 63bea85..59cb037 100644 --- a/roles/lemonldap_ng/defaults/main.yml +++ b/roles/lemonldap_ng/defaults/main.yml @@ -82,3 +82,12 @@ llng_workers: 6 # Sessions are cached locally for performance reasons. You can set the duration (in seconds) for which the cache will be considered valid llng_session_cache: 300 + +# You can, inject a custom configuration in lemonldap-ng.ini (all section) +# llng_custom_config: | +# messageBrokerOptions = { \ +# 'server' => 'lemonldap-ng-valkey.example.org:6379', \ +# 'ssl' => 1, \ +# 'password' => '{{ vault_llng_redis_pwd }}' \ +# } + diff --git a/roles/lemonldap_ng/templates/lemonldap-ng.ini.j2 b/roles/lemonldap_ng/templates/lemonldap-ng.ini.j2 index 4c0a6f1..9ecfce9 100644 --- a/roles/lemonldap_ng/templates/lemonldap-ng.ini.j2 +++ b/roles/lemonldap_ng/templates/lemonldap-ng.ini.j2 @@ -46,6 +46,11 @@ localSessionStorageOptions = { \ 'cache_depth' => 3 \ } +{% if llng_custom_config is defined %} +# Custom configuration +{{ llng_custom_config }} +{% endif %} + [configuration] {% if llng_conf_backend == 'file' %} type = File