Ports configuration refactoring

Ports configuration has been changed:

before:

  port: 123:3333

after:

  port:
    cont: 123
    node: 3333

Change-Id: I6dbc1a576356eb175f6e8d1d1c7b13cd13e05f35
Depends-On: I54ab8dd02fc88b821a1f0d05c08f98b618730150
This commit is contained in:
Andrey Pavlov 2016-10-19 18:10:26 +00:00
parent df51b97a48
commit b957bc5b33
3 changed files with 4 additions and 3 deletions

View File

@ -3,4 +3,5 @@ configs:
max_timeout: 60
root_password: password
mariadb:
port: 3306
port:
cont: 3306

View File

@ -1,6 +1,6 @@
[mysqld]
bind-address = {{ network_topology["private"]["address"] }}
port = {{ mariadb.port }}
port = {{ mariadb.port.cont }}
datadir=/var/lib/mysql/
log-error=/var/log/ccp/mysql/mysql.log

View File

@ -1,3 +1,3 @@
#!/bin/bash -e
test -f /tmp/mariadb_ok && nc -z {{ network_topology["private"]["address"] }} {{ mariadb.port }}
test -f /tmp/mariadb_ok && nc -z {{ network_topology["private"]["address"] }} {{ mariadb.port.cont }}