fix: support update-policies
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
937b6c85de
commit
b7cba859e2
@ -33,7 +33,7 @@ bind9_options:
|
||||
allow_update_forwarding: []
|
||||
auth_nxdomain: false
|
||||
blackhole: []
|
||||
dnssec_validations: true
|
||||
dnssec_validation: true
|
||||
forwarders:
|
||||
- ip: "8.8.8.8" # Google IPv4
|
||||
port: "53"
|
||||
@ -60,6 +60,14 @@ bind9_options:
|
||||
minimal_responses: "no"
|
||||
notify: "yes"
|
||||
recursion: "yes"
|
||||
update_policies: []
|
||||
# - action: grant
|
||||
# identity: keyname
|
||||
# ruletype: name
|
||||
# name: _acme-challenge.example.com.
|
||||
# types:
|
||||
# - TXT
|
||||
|
||||
transfer_format: "many-answers"
|
||||
|
||||
bind9_tsigkeys: []
|
||||
|
@ -224,6 +224,22 @@ view "{{ view.name }}" {
|
||||
|
||||
type {{ zone.type }};
|
||||
|
||||
# The update-policy clause allows more fine-grained control over which
|
||||
# updates are allowed. It specifies a set of rules, in which each rule
|
||||
# either grants or denies permission for one or more names in the zone to be
|
||||
# updated by one or more identities. Identity is determined by the key that
|
||||
# signed the update request, using either TSIG or SIG(0).
|
||||
# https://bind9.readthedocs.io/en/v9_16_5/reference.html#dynamic-update-policies
|
||||
{% if zone.update_policies is defined and zone.update_policies | length > 0 %}
|
||||
update-policy {
|
||||
{% for update_policy in zone.update_policies %}
|
||||
{{ update_policy.action }} {{ update_policy.identity }} {{ update_policy.ruletype }} {{ update_policy.name | default('') }} {{ update_policy.types | default('') | join(' ') }};
|
||||
{% endfor %}
|
||||
};
|
||||
{% else %}
|
||||
# update-policy {};
|
||||
{% endif %}
|
||||
|
||||
};
|
||||
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user