mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
support also-notify
This commit is contained in:
parent
01eca2c3fa
commit
4ca5eca7ee
4 changed files with 12 additions and 0 deletions
|
@ -22,6 +22,9 @@ zone "{{ key }}" {
|
|||
};
|
||||
{% else -%}
|
||||
file "{{ file }}";
|
||||
{%- if args['also-notify'] is defined %}
|
||||
also-notify { {{ args.get('also-notify', []) | join('; ') }}; };
|
||||
{%- endif %}
|
||||
{% if args['type'] == "master" -%}
|
||||
{% if args['notify'] -%}
|
||||
notify yes;
|
||||
|
|
|
@ -38,6 +38,9 @@ zone "{{ key }}" {
|
|||
{%- if args['allow-transfer'] is defined %}
|
||||
allow-transfer { {{ args.get('allow-transfer', []) | join('; ') }}; };
|
||||
{%- endif %}
|
||||
{%- if args['also-notify'] is defined %}
|
||||
also-notify { {{ args.get('also-notify', []) | join('; ') }}; };
|
||||
{%- endif %}
|
||||
{%- if args['type'] == "master" -%}
|
||||
{% if args['notify'] %}
|
||||
notify yes;
|
||||
|
|
|
@ -22,6 +22,9 @@ zone "{{ key }}" {
|
|||
};
|
||||
{% else -%}
|
||||
file "data/{{ file }}";
|
||||
{%- if args['also-notify'] is defined %}
|
||||
also-notify { {{ args.get('also-notify', []) | join('; ') }}; };
|
||||
{%- endif %}
|
||||
{% if args['type'] == "master" -%}
|
||||
{% if args['notify'] -%}
|
||||
notify yes;
|
||||
|
|
|
@ -35,6 +35,9 @@ bind:
|
|||
sub.domain.com:
|
||||
type: master
|
||||
notify: False
|
||||
also-notify:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
1.168.192.in-addr.arpa:
|
||||
type: master
|
||||
notify: False
|
||||
|
|
Loading…
Add table
Reference in a new issue