File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1- ## v2.3.3 (UNRELEASED)
1+ ## v2.3.3
22
33- Add services management (thanks @Sispheor )
44- Add enable_local_script_checks configuration (thanks @canardleteer )
55- Add ability to enable legacy GUI (thanks @imcitius )
6+ - Optional domain datacenter delegation with ` consul_delegate_datacenter_dns `
67
78## v2.3.2
89
Original file line number Diff line number Diff line change @@ -929,6 +929,11 @@ consul3.node.consul. 0 IN A 10.1.42.230
929929;; WHEN: Sun Aug 7 18:06:32 2016
930930;;
931931` ` `
932+
933+ # ## `consul_delegate_datacenter_dns`
934+ - Whether to delegate Consul datacenter DNS domain to Consul
935+ - Default value : false
936+
932937# ## `consul_dnsmasq_enable`
933938
934939- Whether to install and configure DNS API forwarding on port 53 using DNSMasq
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ consul_tls_verify_server_hostname: false
191191consul_tls_files_remote_src : false
192192
193193# # DNS
194+ consul_delegate_datacenter_dns : " {{ lookup('env','CONSUL_DELEGATE_DATACENTER_DNS') | default(false, true) }}"
194195consul_dnsmasq_enable : " {{ lookup('env','CONSUL_DNSMASQ_ENABLE') | default(false, true) }}"
195196consul_dnsmasq_bind_interfaces : false
196197consul_dnsmasq_consul_address : " \
@@ -211,6 +212,7 @@ consul_dnsmasq_local_service: false
211212consul_dnsmasq_listen_addresses : []
212213consul_iptables_enable : " {{ lookup('env','CONSUL_IPTABLES_ENABLE') | default(false, true) }}"
213214
215+ # Consul Enterprise
214216consul_enterprise : " {{ lookup('env','CONSUL_ENTERPRISE') | default(false, true) }}"
215217
216218# Performance
Original file line number Diff line number Diff line change 1- {# Enable forward lookups for the consul domain -#}
1+ {# Enable forward lookups for the consul domain with conditional delegation -#}
2+ {% if consul_delegate_datacenter_dns -%}
23server=/{{ consul_datacenter }}.{{ consul_domain }}/{{ consul_dnsmasq_consul_address }}#{{ consul_ports.dns }}
4+ {% else %}
5+ server=/{{ consul_domain }}/{{ consul_dnsmasq_consul_address }}#{{ consul_ports.dns }}
6+ {% endif -%}
37
48{# Only bind to specific interfaces -#}
59{% if consul_dnsmasq_bind_interfaces -%}
You can’t perform that action at this time.
0 commit comments