{{ 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', 'http', } {% 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 }}' cache.size = {{ kresd__cache_size | int }} * MB