Rethink the backup option for Galera
authorYanis Guenane <yanis.guenane@enovance.com>
Thu, 2 Apr 2015 06:48:31 +0000 (08:48 +0200)
committerYanis Guenane <yanis.guenane@enovance.com>
Tue, 7 Apr 2015 09:53:54 +0000 (11:53 +0200)
commit72e8834efa188ecef879e5ae3141428b6a88f0a5
tree1f8f0bd743686b42a07d27a9f9953e5941fc37bf
parent6f5c208f8df4df034637acd1b5fd6f4b71012d8a
Rethink the backup option for Galera

Initial logic for the backup option in the HAProxy was wrong and
wouldn't do what expected.

Current logic is implemented as follow

1. User passes an array of Galera IP addresses
2. User passes an array of Galera hostnames
3. User passes a Galera master IP and Galera master hostname

Result :

* Set a backend line with Galera master IP and Galera master hostname
* Remove those data from the two arrays of IP and Hostnames
* Set backend lines for whatever is left on those array with the backup
  option on

Change-Id: Idfd72de4fafdce2a9c16945961fee996a98049b7
manifests/loadbalancer.pp