Move all of the role here
This commit is contained in:
17
templates/named.conf.http.j2
Normal file
17
templates/named.conf.http.j2
Normal 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 %}
|
||||
Reference in New Issue
Block a user