From a9b279d004c92f904daf2007e51e31d0ca8fff59 Mon Sep 17 00:00:00 2001 From: jkafader Date: Thu, 30 Mar 2017 15:29:50 -0700 Subject: [PATCH] added 'ports' option to configure ports --- templates/config_server.json.j2 | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/templates/config_server.json.j2 b/templates/config_server.json.j2 index a68b5fe7..456082b5 100644 --- a/templates/config_server.json.j2 +++ b/templates/config_server.json.j2 @@ -3,13 +3,22 @@ { "bind_addr": "{{ consul_bind_address }}", - "advertise_addrs": { + "addresses": { "dns": "{{ consul_dns_bind_address }}", "http": "{{ consul_http_bind_address }}", "https": "{{ consul_https_bind_address }}", - "rpc": "{{ consul_rpc_bind_address }}", - "serf_wan": "{{ consul_serf_wan_bind_address }}", - "serf_lan": "{{ consul_serf_lan_bind_address }}" + "rpc": "{{ consul_rpc_bind_address }}" + }, + "serf_wan_bind": "{{ consul_serf_wan_bind_address }}", + "serf_lan_bind": "{{ consul_serf_lan_bind_address }}", + "ports": { + "dns": "{{consul_dns_port}}", + "http": "{{consul_http_port}}", + "https": "{{consul_https_port}}", + "rpc": "{{consul_rpc_port}}", + "serf_wan": "{{consul_serf_wan}}", + "serf_lan": "{{consul_serf_lan}}", + "server": "{{consul_server_port}}" }, {%- if consul_recursors|length > 0 -%} "recursors": [ {% for recursor in consul_recursors -%}