a9ade20bee
Implement ansible role to deploy designate and dependencies. The backend used is bind9. Co-Authored-By: zhubingbing <zhubingbing10@gmail.com> Co-Authored-By: Eduardo Gonzalez <dabarren@gmail.com> Depends-On: 6d0dc3e0f931c7c50b64a4659900cc50b0d860a2 Implements: blueprint ansible-designate Change-Id: I34d8126e0cd8d71d5ced9b62f3776cc354fbb549
16 lines
763 B
Django/Jinja
16 lines
763 B
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 auto;
|
|
auth-nxdomain no;
|
|
request-ixfr no;
|
|
recursion no;
|
|
minimal-responses yes;
|
|
};
|
|
|
|
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"; };
|
|
};
|