2022-08-26 02:01:12 +02:00
|
|
|
{{ ansible_managed | comment(decoration="-- ") }}
|
|
|
|
|
|
|
|
{% for listen in kresd__listen %}
|
|
|
|
net.listen(
|
|
|
|
{{ listen.address | enquote }},
|
|
|
|
{{ listen.port | int }},
|
|
|
|
{
|
|
|
|
kind = {{ listen.kind | enquote }},
|
|
|
|
freebind = {{ listen.freebind
|
|
|
|
| default(kresd__freebind) }},
|
|
|
|
}
|
|
|
|
)
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
modules = {
|
|
|
|
'hints > iterate',
|
|
|
|
'stats',
|
|
|
|
'predict',
|
2023-04-08 00:54:13 +02:00
|
|
|
'http',
|
2022-08-26 02:01:12 +02:00
|
|
|
}
|
|
|
|
|
2023-04-08 00:54:13 +02:00
|
|
|
{% set webmgmt = kresd__listen
|
|
|
|
| selectattr("kind", "==", "webmgmt")
|
|
|
|
| default({}) %}
|
|
|
|
http.config({
|
|
|
|
tls = {{ (webmgmt | first).tls
|
|
|
|
| default(False)
|
|
|
|
| ternary('true', 'false') }},
|
|
|
|
}, 'webmgmt')
|
|
|
|
|
|
|
|
http.prometheus.namespace = '{{ kresd__prometheus_namespace }}'
|
|
|
|
|
2022-08-26 02:01:12 +02:00
|
|
|
cache.size = {{ kresd__cache_size | int }} * MB
|