Skip to content

Commit 5fd7591

Browse files
committed
Release v2.3.3
1 parent 24820e5 commit 5fd7591

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ consul_tls_verify_server_hostname: false
191191
consul_tls_files_remote_src: false
192192

193193
## DNS
194+
consul_delegate_datacenter_dns: "{{ lookup('env','CONSUL_DELEGATE_DATACENTER_DNS') | default(false, true) }}"
194195
consul_dnsmasq_enable: "{{ lookup('env','CONSUL_DNSMASQ_ENABLE') | default(false, true) }}"
195196
consul_dnsmasq_bind_interfaces: false
196197
consul_dnsmasq_consul_address: "\
@@ -211,6 +212,7 @@ consul_dnsmasq_local_service: false
211212
consul_dnsmasq_listen_addresses: []
212213
consul_iptables_enable: "{{ lookup('env','CONSUL_IPTABLES_ENABLE') | default(false, true) }}"
213214

215+
# Consul Enterprise
214216
consul_enterprise: "{{ lookup('env','CONSUL_ENTERPRISE') | default(false, true) }}"
215217

216218
# Performance

templates/dnsmasq-10-consul.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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 -%}
23
server=/{{ 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 -%}

0 commit comments

Comments
 (0)