Skip to content
Snippets Groups Projects
Commit fb6c6f10 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fixes bind9 restarting when no designate_forwarders_addresses"

parents a018e60c fae046ec
No related branches found
No related tags found
No related merge requests found
#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 { ...@@ -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 %} };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment