Move all of the role here

This commit is contained in:
Daniel Akulenok
2022-08-04 12:41:40 +02:00
commit 20a43d06bd
29 changed files with 1886 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{% macro http(seq) %}
{% for http in seq if seq is iterable %}
http {{ http.name }} {
{% filter indent(2, true) %}
{% if http.endpoints is defined and http.endpoints %}
endpoints {
{% filter indent(2, true) %}
{% for endpoint in http.endpoints %}
{{ '"' + endpoint + '";' }}
{% endfor %}
{% endfilter %}};
{% endif%}
{{ ('listener-clients ' + http.listener_clients | string + ';\n') if http.listener_clients is defined and http.listener_clients -}}
{{ ('streams-per-connection ' + http.streams_per_connection | string + ';\n') if http.streams_per_connection is defined and http.streams_per_connection -}}
{% endfilter %}};
{% endfor %}
{% endmacro %}