4157f30c5f
To get forwarding to work in the kolla implementaion of designate, I'm adding parameters to the named.conf.j2 template. I'm adding the ability to change the default values for dnssec-validation and recursion and creating a new paramater for forwarders. Change-Id: Ideef39034d75a0d99e8a3dc2a5f1a7203ccf51d5 Closes-Bug: #1781196
18 lines
1.0 KiB
Django/Jinja
18 lines
1.0 KiB
Django/Jinja
include "/etc/rndc.key";
|
|
options {
|
|
listen-on port {{ designate_bind_port }} { {{ hostvars[inventory_hostname]['ansible_' + hostvars[inventory_hostname]['api_interface']]['ipv4']['address'] }}; };
|
|
directory "/var/lib/named";
|
|
allow-new-zones yes;
|
|
dnssec-validation {{ designate_dnssec_validation }};
|
|
auth-nxdomain no;
|
|
request-ixfr no;
|
|
recursion {{ designate_recursion }};
|
|
forwarders { {{ designate_forwarders_addresses }}; };
|
|
minimal-responses yes;
|
|
allow-notify { {% for host in groups['designate-worker'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }};{% endfor %} };
|
|
};
|
|
|
|
controls {
|
|
inet {{ hostvars[inventory_hostname]['ansible_' + hostvars[inventory_hostname]['api_interface']]['ipv4']['address'] }} port {{ designate_rndc_port }} allow { {% for host in groups['designate-worker'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}; {% endfor %} } keys { "rndc-key"; };
|
|
};
|