From 352cbd131d6afe5c152dbce7fe923762eb41811a Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 6 Sep 2016 14:36:03 -0500 Subject: [PATCH] Allow galera to listen on v4/v6 While working on https://review.openstack.org/#/c/320542/, galera was found to be listening only on IPv6 addresses. Connections to ::1 worked fine, but connections to 127.0.0.1 failed. This patch ensures that galera is listening on all IPv4 and IPv6 addresses. Closes-bug: 1620793 Change-Id: I1ddae03343b6fe9542b6118810cc55108d4417c0 --- templates/my.cnf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/my.cnf.j2 b/templates/my.cnf.j2 index fd682386..9d2f76ef 100644 --- a/templates/my.cnf.j2 +++ b/templates/my.cnf.j2 @@ -28,6 +28,7 @@ collation-server = utf8_general_ci init-connect = 'SET NAMES utf8' character-set-server = utf8 datadir = /var/lib/mysql +bind-address = :: {% if galera_server_id is defined %} server-id = {{ galera_server_id }} {% endif %}