sathlan ea706a253b Improve Galera configuration for clustering
Debian only.

The problem here is that the first time the galera is started it must be
done with some specific option, ie "--wsrep-new-cluster".  Then it
shouldn't be used anymore.  This has to be used only on one node or else
all nodes become master.

To achieve this behaviour a specific mysql init script is installed:
mysql-bootstrap.

This script check if the galera has started and, if it's not the case,
it adds wsrep-new-cluster to the command line.

Then in puppet I change the service name for mysql to mysql-bootstrap on
one node.

The port to RHEL could take the same road.  The only requirement is
that:

$ strings `which mysqld` | grep wsrep-new-cluster

be true.

I don't add the close 11 to it as the rhel support should come with it I
think.

issue #11
2014-01-27 18:31:50 -05:00
..