Spacing
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{# ACL Macro. Very easy statement. It's just a list of address match elements. #}
|
||||
{% for acl in item.acl %}
|
||||
|
||||
acl {{ acl.name }} {
|
||||
{{ functions.simple_item_list(acl.addresses) -}}
|
||||
};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
controls {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% for control in item.controls %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for dlz in item.dlz if item.dlz is iterable %}
|
||||
|
||||
dlz "{{ dlz.name }}" {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{{ ('database "' + simple_item_list(dlz.database) + '";') }}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for policy in item.dnssec_policy if item.dnssec_policy is iterable %}
|
||||
|
||||
dnssec-policy "{{ policy.name }}" {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% if policy.keys is defined and policy.keys %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for dyndb in item.dyndb if item.dyndb is iterable %}
|
||||
|
||||
dyndb {{ dyndb.name }} "{{ dyndb.driver }}" {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{{ functions.simple_item_list(dyndb.parameters) -}}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
{% import 'named.conf.functions.j2' as functions with context %}
|
||||
{{ ansible_managed | comment }}
|
||||
{% if item.options is defined and item.options %}
|
||||
options {
|
||||
{% filter indent(bind9_config_indent,true)%}
|
||||
{% include 'named.conf.options.j2' %}
|
||||
{% endfilter %}
|
||||
};
|
||||
|
||||
{% endif %}
|
||||
{% if item.acl is defined and item.acl %}
|
||||
{% include 'named.conf.acl.j2' %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for http in item.http if item.http is iterable %}
|
||||
|
||||
http {{ http.name }} {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% if http.endpoints is defined and http.endpoints %}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
{% for file in item.include %}
|
||||
include "{{ file }}";
|
||||
{% endfor %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for keyname in item.keylist if item.keylist is iterable %}
|
||||
|
||||
key {{ keyname.name }} {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{{ ('algorithm ' + keyname.algorithm + ';\n') if keyname.algorithm is defined and keyname.algorithm -}}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
logging {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% for category in item.logging.categories if item.logging.categories is defined and item.logging.categories %}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
options {
|
||||
{% filter indent(bind9_config_indent,true)%}
|
||||
{# Unicorn Options#}
|
||||
{% if item.options.rrset_order is defined and item.options.rrset_order %}
|
||||
rrset-order {
|
||||
@@ -460,3 +463,5 @@ tkey-dhkey "{{ item.options.tkey_dhkey.key_name }}" {{ item.options.tkey_dhkey.k
|
||||
{{ (functions.boolean_option('use-alt-transfer-source', item.options.use_alt_transfer_source) + '\n') if item.options.use_alt_transfer_source is defined -}}
|
||||
{{ (functions.boolean_option('zero-no-soa-ttl', item.options.zero_no_soa_ttl) + '\n') if item.options.zero_no_soa_ttl is defined -}}
|
||||
{{ (functions.boolean_option('zero-no-soa-ttl-cache', item.options.zero_no_soa_ttl_cache) + '\n') if item.options.zero_no_soa_ttl_cache is defined -}}
|
||||
{% endfilter %}
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for agent in item.parental_agents if item.parental_agents is iterable %}
|
||||
|
||||
parental-agents {{ agent.name -}}
|
||||
{{ (' port ' + agent.port | string) if agent.port is defined and agent.port -}}
|
||||
{{ (' dscp ' + agent.dscp | string) if agent.dscp is defined and agent.dscp }} {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for primary in item.primaries if item.primaries is iterable %}
|
||||
|
||||
primaries {{ primary.name -}}
|
||||
{{ (' port ' + primary.port | string) if primary.port is defined and primary.port -}}
|
||||
{{ (' dscp ' + primary.dscp | string) if primary.dscp is defined and primary.dscp }} {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for server in item.server if item.server is iterable %}
|
||||
|
||||
server {{ server.prefix }} {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% if server.transfer_source is defined and server.transfer_source is mapping %}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
statistics-channels {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% for channel in item.statistics_channels if item.statistics_channels is iterable %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for tls in item.tls if item.tls is iterable %}
|
||||
|
||||
tls {{ tls.name }} {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{{ ('cert-file "' + tls.cert_file + '";\n') if tls.cert_file is defined and tls.cert_file -}}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
trust-anchors {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% for anchor in item.trust_anchors if item.trust_anchors is iterable %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for view in item.view if item.view is iterable %}
|
||||
|
||||
view {{ view.name }} {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{{ ('match-recursive-only ' + functions.named_boolean(view.match_recursive_only) + ';\n') if view.match_recursive_only is defined -}}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% for zone in item.zones %}
|
||||
|
||||
zone "{{ zone.name }}" {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
# Zone {{ zone.name }} type {{ zone.type }}
|
||||
@@ -155,5 +156,4 @@ parental-source-v6 {{ zone.parental_source_v6.address -}}
|
||||
{{ ('in-view ' + zone.in_view | string+';\n') if zone.in_view is defined and zone.in_view -}}
|
||||
{% endfilter %}
|
||||
};
|
||||
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user