mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-17 02:00:23 +00:00
Add support for dynamic zone updates.
This commit is contained in:
parent
0de651043f
commit
3b6f48959e
2 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,13 @@ zone "{{ key }}" {
|
||||||
{% 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 %}
|
||||||
|
update-policy {
|
||||||
|
{%- for policy in args.update_policy %}
|
||||||
|
{{ policy }};
|
||||||
|
{%- endfor %}
|
||||||
|
};
|
||||||
|
{%- endif %}
|
||||||
{% if args['type'] == "master" -%}
|
{% if args['type'] == "master" -%}
|
||||||
{% if args['notify'] -%}
|
{% if args['notify'] -%}
|
||||||
notify yes;
|
notify yes;
|
||||||
|
|
|
@ -38,6 +38,8 @@ bind:
|
||||||
my.zone:
|
my.zone:
|
||||||
type: master
|
type: master
|
||||||
notify: False
|
notify: False
|
||||||
|
update_policy:
|
||||||
|
- "grant core_dhcp name dns_entry_allowed_to_update. ANY"
|
||||||
|
|
||||||
bind:
|
bind:
|
||||||
available_zones:
|
available_zones:
|
||||||
|
|
Loading…
Add table
Reference in a new issue