Skip to content

Commit

Permalink
added 'ports' option to configure ports
Browse files Browse the repository at this point in the history
  • Loading branch information
jkafader authored Mar 30, 2017
1 parent a31cba9 commit a9b279d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions templates/config_server.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit a9b279d

Please sign in to comment.