MariaDB bind on correct address
authorJiri Stransky <jistr@redhat.com>
Fri, 10 Apr 2015 09:28:44 +0000 (11:28 +0200)
committerDan Prince <dprince@redhat.com>
Fri, 10 Apr 2015 17:07:02 +0000 (17:07 +0000)
commitbafe58c42d2c0c58346fce929cf443c0436b6cd5
tree073e59b869a50c92a6752a11f92672fa16b9da55
parentea327280931da20c258cc30a64bd9c57cc0b8ddb
MariaDB bind on correct address

Despite passing bind-address for MariaDB in overcloud_controller.pp
correctly, it was always trying to bind on 0.0.0.0. The problem is
caused by Galera's config file (we install Galera into the image even
though we don't use it yet). Galera's default config file contains
override of the bind-address value to 0.0.0.0, and the setting from
galera.cnf took precendence over what was in server.cnf.

The mariadb-galera-server package assumes that the main config happens
in galera.cnf and it ships an almost empty server.cnf. We now have an
EnableGalera param, when it's set to true the mysql module will manage
galera.cnf instead of server.cnf, overriding the default values from
galera.cnf and fixing the issue.

Change-Id: I7c2fd41d41dcf5eb4ee8b1dbd74d60cc2cabeed9
Closes-Bug: #1442256
controller.yaml
overcloud-without-mergepy.yaml
puppet/controller-puppet.yaml
puppet/manifests/overcloud_controller.pp