changes to indentation

This commit is contained in:
Daniel Akulenok
2022-08-19 22:01:36 +02:00
parent f0cd205c20
commit 8e12a4388f
18 changed files with 30 additions and 29 deletions

View File

@@ -2,7 +2,7 @@
{# Unicorn Options#}
{% if option.rrset_order is defined and option.rrset_order %}
rrset-order {
{% filter indent(4, true) %}
{% filter indent(bind9_config_indent*2, true) %}
{% for rrset in option.rrset_order %}
{{ ('class ' + rrset.class | string + ' ') if rrset.class is defined and rrset.class -}}
{{ ('type ' + rrset.type | string + ' ') if rrset.type is defined and rrset.type -}}
@@ -13,7 +13,7 @@ rrset-order {
{% endif %}
{% if option.response_policy is defined and option.response_policy %}
response-policy {
{% filter indent(2, true) %}
{% filter indent(bind9_config_indent, true) %}
{% for zone in option.response_policy.zones %}
{{- ('zone ' + zone.zone | string) -}}
{{- (' max-policy-ttl ' + zone.max_policy_ttl | string) if zone.max_policy_ttl is defined and zone.max_policy_ttl -}}
@@ -47,7 +47,7 @@ response-padding {
{% endif %}
{% if option.rate_limit is defined and option.rate_limit %}
rate-limit {
{% filter indent(2, true) %}
{% filter indent(bind9_config_indent, true) %}
{{ ('all-per-second ' + option.rate_limit.all_per_second | string + ';\n') if option.rate_limit.all_per_second is defined and option.rate_limit.all_per_second -}}
{{ ('errors-per-second ' + option.rate_limit.errors_per_second | string + ';\n') if option.rate_limit.errors_per_second is defined and option.rate_limit.errors_per_second -}}
{{ ('responses-per-second ' + option.rate_limit.responses_per_second | string + ';\n') if option.rate_limit.responses_per_second is defined and option.rate_limit.responses_per_second -}}
@@ -104,7 +104,7 @@ listen-on
dual-stack-servers
{{ (' port ' + option.dual_stack_servers.port | string) if option.dual_stack_servers.port is defined and option.dual_stack_servers }} {
{% for host in option.dual_stack_servers.addresses %}
{% filter indent(2, true) %}
{% filter indent(bind9_config_indent, true) %}
{{ host.address | ansible.utils.ipaddr | ternary(host.address, '"' + host.address + '"') }}
{{- (' port ' + host.port | string) if host.port is defined and host.port -}}
{{- (' dscp ' + host.dscp | string) if host.dscp is defined and host.dscp -}};
@@ -120,7 +120,7 @@ dnstap-output {{ option.dnstap_output.output_type -}}
{% endif %}
{% if option.dnstap is defined and option.dnstap %}
dnstap {
{% filter indent(2, true) %}
{% filter indent(bind9_config_indent, true) %}
{% for dnstap in option.dnstap %}
{{ dnstap.type }}{{ ' ' + dnstap.log if dnstap.log is defined and dnstap.log }};
{% endfor %}
@@ -129,7 +129,7 @@ dnstap {
{% if option.dns64 is defined and option.dns64 %}
{% for dns64 in option.dns64 if option.dns64 is sequence %}
dns64 {{ dns64.netprefix }} {
{% filter indent(2, true) %}
{% filter indent(bind9_config_indent, true) %}
{{ ('break-dnssec ' + dns64.break_dnssec | functions.named_boolean + ';\n') if dns64.break_dnssec is defined and dns64.break_dnssec is boolean -}}
{{ ('recursive-only ' + dns64.recursive_only | functions.named_boolean + ';\n') if dns64.recursive_only is defined and dns64.recursive_only is boolean -}}
{{ ('suffix ' + dns64.suffix + ';\n') if dns64.suffix is defined and dns64.suffix -}}
@@ -164,7 +164,7 @@ check-names {{ policy.type }} {{ policy.action }};
catalog-zones {
{% for catalog_zone in option.catalog_zones %}
zone {{ catalog_zone.zone }}
{% filter indent(6, true) %}
{% filter indent(bind9_config_indent*3, true) %}
{% if catalog_zone.default_primaries is defined and catalog_zone.default_primaries %}
default-primaries
{{- (' port ' + catalog_zone.default_primaries.port | string) if catalog_zone.default_primaries.port is defined and catalog_zone.default_primaries.port -}}