Add support for dynamic zone updates.

This commit is contained in:
root 2015-03-22 23:26:35 +01:00
parent 0de651043f
commit 3b6f48959e
2 changed files with 9 additions and 0 deletions

View file

@ -18,6 +18,13 @@ zone "{{ key }}" {
{% if args['allow-update'] is defined -%}
allow-update { {{args['allow-update']}}; };
{%- endif %}
{%- if args.update_policy is defined %}
update-policy {
{%- for policy in args.update_policy %}
{{ policy }};
{%- endfor %}
};
{%- endif %}
{% if args['type'] == "master" -%}
{% if args['notify'] -%}
notify yes;

View file

@ -38,6 +38,8 @@ bind:
my.zone:
type: master
notify: False
update_policy:
- "grant core_dhcp name dns_entry_allowed_to_update. ANY"
bind:
available_zones: