[Designate] Configure named to also listen on 'dns_interface'
Update the template so that if 'dns_interface' is set, named listens on this interface as well as the 'api_interface'. Change-Id: I986ca46e5599e4767800fcc7f34a1c6e682efb55 Closes-Bug: 1808829
This commit is contained in:
parent
a4bddfdb36
commit
005458d67e
@ -2,6 +2,9 @@
|
||||
include "/etc/rndc.key";
|
||||
options {
|
||||
listen-on port {{ designate_bind_port }} { {{ hostvars[inventory_hostname]['ansible_' + hostvars[inventory_hostname]['api_interface']]['ipv4']['address'] }}; };
|
||||
{% if api_interface != dns_interface %}
|
||||
listen-on port {{ designate_bind_port }} { {{ hostvars[inventory_hostname]['ansible_' + hostvars[inventory_hostname]['dns_interface']]['ipv4']['address'] }}; };
|
||||
{% endif %}
|
||||
directory "/var/lib/named";
|
||||
allow-new-zones yes;
|
||||
dnssec-validation {{ designate_dnssec_validation }};
|
||||
|
Loading…
Reference in New Issue
Block a user