mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +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 -%}
|
||||
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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue