mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2024-01-08 11:00
This commit is contained in:
@@ -4,23 +4,14 @@
|
||||
logLevel = notice
|
||||
logger = Lemonldap::NG::Common::Logger::Syslog
|
||||
userLogger = Lemonldap::NG::Common::Logger::Syslog
|
||||
{% if llng_conf_backend == 'file' %}
|
||||
{% if llng_sessions_backend == 'file' %}
|
||||
globalStorage = Apache::Session::File
|
||||
globalStorageOptions = { \
|
||||
'Directory' => '/var/lib/lemonldap-ng/sessions/', \
|
||||
'LockDirectory' => '/var/lib/lemonldap-ng/sessions/lock/', \
|
||||
'generateModule' => 'Lemonldap::NG::Common::Apache::Session::Generate::SHA256' \
|
||||
}
|
||||
{% endif %}
|
||||
localSessionStorage = Cache::FileCache
|
||||
localSessionStorageOptions = { \
|
||||
'namespace' => 'sessions', \
|
||||
'default_expires_in' => '{{ llng_session_cache }}', \
|
||||
'directory_umask' => '007', \
|
||||
'cache_root' => '/var/cache/lemonldap-ng', \
|
||||
'cache_depth' => 3 \
|
||||
}
|
||||
{% if llng_conf_backend == 'mysql' %}
|
||||
{% elif llng_sessions_backend == 'mysql' %}
|
||||
{% for type in llng_session_tables.keys() | list %}
|
||||
{{ type }}Storage = Apache::Session::Browseable::MySQL
|
||||
{{ type }}StorageOptions = { \
|
||||
@@ -34,7 +25,26 @@ localSessionStorageOptions = { \
|
||||
'generateModule' => 'Lemonldap::NG::Common::Apache::Session::Generate::SHA256' \
|
||||
}
|
||||
{% endfor %}
|
||||
{% elif llng_sessions_backend == 'api' %}
|
||||
globalStorage = Lemonldap::NG::Common::Apache::Session::REST
|
||||
globalStorageOptions = { \
|
||||
'baseUrl' => "{{ llng_api_sessions_url }}", \
|
||||
{% if llng_api_user is defined and llng_api_pass is defined %}
|
||||
'user' => "{{ llng_api_user }}", \
|
||||
'password' => "{{ llng_api_pass }}", \
|
||||
'realm' => "{{ llng_api_realm }}" \
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
localSessionStorage = Cache::FileCache
|
||||
localSessionStorageOptions = { \
|
||||
'namespace' => 'sessions', \
|
||||
'default_expires_in' => '{{ llng_session_cache }}', \
|
||||
'directory_umask' => '007', \
|
||||
'cache_root' => '/var/cache/lemonldap-ng', \
|
||||
'cache_depth' => 3 \
|
||||
}
|
||||
|
||||
[configuration]
|
||||
{% if llng_conf_backend == 'file' %}
|
||||
@@ -42,10 +52,11 @@ type = File
|
||||
dirName = /var/lib/lemonldap-ng/conf
|
||||
{% elif llng_conf_backend == 'api' %}
|
||||
type = REST
|
||||
baseUrl = {{ llng_api_uri }}
|
||||
baseUrl = {{ llng_api_conf_url }}
|
||||
{% if llng_api_user is defined and llng_api_pass is defined %}
|
||||
User = {{ llng_api_user }}
|
||||
Password = {{ llng_api_pass }}
|
||||
user = {{ llng_api_user }}
|
||||
password = {{ llng_api_pass }}
|
||||
realm = {{ llng_api_realm }}
|
||||
{% endif %}
|
||||
proxyOptions = { timeout => 5 }
|
||||
{% elif llng_conf_backend == 'mysql' %}
|
||||
|
Reference in New Issue
Block a user