roles/bind: Simplify zone allow-update settings

Items in the `allow_update` property can use the address match list
syntax to specify arbitrary restrictions, including TSIG key names.
There is really no need for a special case for key names.
This commit is contained in:
2018-02-21 22:28:35 -06:00
parent eca967c8b3
commit 83817ca340

View File

@@ -7,11 +7,7 @@ zone "{{ zone.zone }}" {
{% if zone.allow_update|d %}
allow-update {
{% for auth in zone.allow_update %}
{% if auth.key is defined %}
key {{ auth.key }};
{% else %}
{{ auth }};
{% endif %}
{% endfor %}
};
{% endif %}