Ports configuration refactoring

Ports configuration has been changed:

before:

  port: 123:3333

after:

  port:
    cont: 123
    node: 3333

Change-Id: I6942379a7f8b52dcbce8a300af8d6c6301c57edf
Depends-On: I54ab8dd02fc88b821a1f0d05c08f98b618730150
This commit is contained in:
Andrey Pavlov 2016-10-19 17:53:42 +00:00
parent 7d77d3653a
commit 09dd88d0ed
2 changed files with 6 additions and 4 deletions

View File

@ -12,5 +12,5 @@ service:
command: "true"
type: "exec"
daemon:
command: etcd --listen-client-urls http://0.0.0.0:{{ etcd.client_port }}
--advertise-client-urls http://{{ address("etcd") }}:{{ etcd.client_port }}
command: etcd --listen-client-urls http://0.0.0.0:{{ etcd.client_port.cont }}
--advertise-client-urls http://{{ address("etcd") }}:{{ etcd.client_port.cont }}

View File

@ -2,8 +2,10 @@ configs:
etcd:
connection_attempts: 20
connection_delay: 5
client_port: 2379
server_port: 2380
client_port:
cont: 2379
server_port:
cont: 2380
versions:
etcd_version: v3.0.12