Bind mariadb to private iface

We dont need to bind any internal services to 0.0.0.0

Change-Id: I94d52f2165f1d5b2c50e7f0cd2b12688f4f1246e
This commit is contained in:
Proskurin Kirill 2016-07-28 12:16:27 +02:00
parent 9c2bea461e
commit de038a82a7
2 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,4 @@
configs:
db_max_timeout: 60
db_root_password: password
mariadb_addr: 0.0.0.0
mariadb_port: 3306

View File

@ -1,5 +1,5 @@
[mysqld]
bind-address = {{ mariadb_addr }}
bind-address = {{ network_topology["private"]["address"] }}
port = {{ mariadb_port }}
datadir=/var/lib/mysql/
@ -18,10 +18,6 @@ wsrep_node_name="HOSTNAME"
wsrep_sst_method=xtrabackup-v2
wsrep_sst_auth=mysql:password
wsrep_slave_threads=4
#wsrep_cluster_address=gcomm://IPADDR
#wsrep_provider_options=gmcast.listen_addr=tcp://IPADDR
#wsrep_node_address=IPADDR
#wsrep_sst_receive_address=IPADDR
[server]
pid-file=/var/lib/mysql/mariadb.pid