Add support for secondary-to-secondary replication
This commit is contained in:
parent
88996a3700
commit
55ad1892a9
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ namespace: s3lph
|
||||||
name: nameserver
|
name: nameserver
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
# The version of the collection. Must be compatible with semantic versioning
|
||||||
version: "0.3.5"
|
version: "0.3.6"
|
||||||
|
|
||||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
|
@ -48,7 +48,7 @@ remote:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
acl:
|
acl:
|
||||||
{% for remote in zones | map(attribute='replicas') | flatten | unique %}
|
{% for remote in (zones | map(attribute='replicas') ) + (zones | map(attribute='replicate') | map(attribute=inventory_hostname) | default([]) ) | flatten | unique %}
|
||||||
|
|
||||||
- id: acl-xfr-{{ remote }}
|
- id: acl-xfr-{{ remote }}
|
||||||
action: transfer
|
action: transfer
|
||||||
|
@ -56,7 +56,7 @@ acl:
|
||||||
key: {{ hostvars[remote].knot_tsig_key.name }}
|
key: {{ hostvars[remote].knot_tsig_key.name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for address in hostvars[remote].knot_dns_addresses %}
|
{% for address in hostvars[remote].knot_dns_addresses %}
|
||||||
address: "{{ address }}"
|
address: "{{ address.split('@')[0] }}"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ zone:
|
||||||
acl: acl-update-{{ updater }}
|
acl: acl-update-{{ updater }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for replica in zone.replicas %}
|
{% for replica in zone.replicas + ( (zone.replicate | default({}) )[inventory_hostname] | default([]) ) %}
|
||||||
notify: remote-{{ replica }}
|
notify: remote-{{ replica }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue