Merge "Extending designate named template to include "forwarders" parameter"

This commit is contained in:
Zuul 2018-07-24 04:07:41 +00:00 committed by Gerrit Code Review
commit 4b8f17cd82
2 changed files with 11 additions and 2 deletions

View File

@ -140,3 +140,11 @@ openstack_designate_auth: "{{ openstack_auth }}"
designate_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
designate_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
designate_dev_mode: "{{ kolla_dev_mode }}"
####################
## Designate
#####################
designate_dnssec_validation: "yes"
designate_recursion: "no"
## Example for designate_forwarders_addresses: "10.199.200.1; 10.199.100.1"
designate_forwarders_addresses: ""

View File

@ -3,10 +3,11 @@ 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;
dnssec-validation {{ designate_dnssec_validation }};
auth-nxdomain no;
request-ixfr no;
recursion 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 %} };
};