Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bind/files/named.conf.local.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ zone "{{ key }}" {
inline-signing yes;
{%- endif %}
{%- if args['allow-update'] is defined %}
allow-update { {{ args['allow-update'] }}; };
{%- if args['allow-update'] is string %}
{%- set allow_update = [args['allow-update']] %}
{%- else %}
{%- set allow_update = args['allow-update'] %}
{%- endif %}
allow-update { {{ allow_update | join('; ') }}; };
{%- endif %}
{%- if args.update_policy is defined %}
update-policy {
Expand Down
4 changes: 3 additions & 1 deletion pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ bind:

dynamic.domain.com: # Our ddns zone
type: master # As above
allow-update: "key core_dhcp" # Who we allow updates from (refers to above key)
allow-update:
- "key core_dhcp" # Who we allow updates, could be a string or an array
- "key other_dhcp"
notify: true # Notify NS RRs of changes

sub.anotherdomain.com: # Another domain zone
Expand Down