Fixes bind9 restarting when no designate_forwarders_addresses
When deploying designate if no designate_forwarders_addresses is provided, bind9 container keeps restarting due an invalid(empty) forwarder addresses is set in named.conf Change-Id: I7d309eb077243435dd2038629074251abec7d3e1 Closes-Bug: #1787092
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#jinja2: trim_blocks: False
|
||||||
include "/etc/rndc.key";
|
include "/etc/rndc.key";
|
||||||
options {
|
options {
|
||||||
listen-on port {{ designate_bind_port }} { {{ hostvars[inventory_hostname]['ansible_' + hostvars[inventory_hostname]['api_interface']]['ipv4']['address'] }}; };
|
listen-on port {{ designate_bind_port }} { {{ hostvars[inventory_hostname]['ansible_' + hostvars[inventory_hostname]['api_interface']]['ipv4']['address'] }}; };
|
||||||
@@ -7,7 +8,9 @@ options {
|
|||||||
auth-nxdomain no;
|
auth-nxdomain no;
|
||||||
request-ixfr no;
|
request-ixfr no;
|
||||||
recursion {{ designate_recursion }};
|
recursion {{ designate_recursion }};
|
||||||
|
{% if designate_forwarders_addresses %}
|
||||||
forwarders { {{ designate_forwarders_addresses }}; };
|
forwarders { {{ designate_forwarders_addresses }}; };
|
||||||
|
{% endif %}
|
||||||
minimal-responses yes;
|
minimal-responses yes;
|
||||||
allow-notify { {% for host in groups['designate-worker'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }};{% endfor %} };
|
allow-notify { {% for host in groups['designate-worker'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }};{% endfor %} };
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user