Merge pull request #63 from levlozhkin/master

Make some named.conf.local template whitespace cleaner
This commit is contained in:
Forrest 2016-07-19 09:11:11 -07:00 committed by GitHub
commit 01eca2c3fa

View file

@ -25,7 +25,7 @@ zone "{{ key }}" {
{% else -%} {% else -%}
file "{{ map.named_directory }}/{{ file }}"; file "{{ map.named_directory }}/{{ file }}";
{%- endif %} {%- endif %}
{% if args['allow-update'] is defined -%} {%- if args['allow-update'] is defined %}
allow-update { {{args['allow-update']}}; }; allow-update { {{args['allow-update']}}; };
{%- endif %} {%- endif %}
{%- if args.update_policy is defined %} {%- if args.update_policy is defined %}
@ -35,20 +35,16 @@ zone "{{ key }}" {
{%- endfor %} {%- endfor %}
}; };
{%- endif %} {%- endif %}
{%- if args['allow-transfer'] is defined -%} {%- if args['allow-transfer'] is defined %}
allow-transfer { allow-transfer { {{ args.get('allow-transfer', []) | join('; ') }}; };
{%- for remote in args.get('allow-transfer', {}) -%} {%- endif %}
{{ remote }}; {%- if args['type'] == "master" -%}
{%- endfor -%} {% if args['notify'] %}
};
{%- endif -%}
{% if args['type'] == "master" -%}
{% if args['notify'] -%}
notify yes; notify yes;
{% else -%} {% else %}
notify no; notify no;
{%- endif -%} {%- endif -%}
{% else -%} {% else %}
notify no; notify no;
masters { {{ masters }} }; masters { {{ masters }} };
{%- endif %} {%- endif %}