Indentation Saga
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{# Unicorn Options#}
|
||||
{% if option.rrset_order is defined and option.rrset_order %}
|
||||
rrset-order {
|
||||
{% filter indent(bind9_config_indent*2, true) %}
|
||||
{% filter indent(bind9_config_indent, 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 -}}
|
||||
@@ -38,7 +38,7 @@ response-policy {
|
||||
{{- (' nsip-enable ' + functions.named_boolean(option.response_policy.nsip_enable)) if option.response_policy.nsip_enable is defined -}}
|
||||
{{- (' nsdname-enable ' + functions.named_boolean(option.response_policy.nsdname_enable)) if option.response_policy.nsdname_enable is defined -}}
|
||||
{{- (' dnsrps-enable ' + functions.named_boolean(option.response_policy.dnsrps_enable)) if option.response_policy.dnsrps_enable is defined -}}
|
||||
{{- (' dnsrps-options {\n' + functions.simple_item_list(option.response_policy.dnsrps_options) + '}') if option.response_policy.dnsrps_options is defined and option.response_policy.dnsrps_options -}};
|
||||
{{- (' dnsrps-options { ' + option.response_policy.dnsrps_options | join('; ') + '; }') if option.response_policy.dnsrps_options is defined and option.response_policy.dnsrps_options -}};
|
||||
{% endif %}
|
||||
{% if option.response_padding is defined and option.response_padding %}
|
||||
response-padding {
|
||||
@@ -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(bind9_config_indent*3, true) %}
|
||||
{% filter indent(bind9_config_indent, 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 -}}
|
||||
|
||||
Reference in New Issue
Block a user