Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "allow-update" to have multiple elements #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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