From 10890f0c93d2d04722f7172d2ecd4290786fc7ed Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 3 Feb 2016 10:02:49 -0500 Subject: [PATCH] Adding galera options to my.cnf --- roles/db/templates/my.cnf.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/db/templates/my.cnf.j2 b/roles/db/templates/my.cnf.j2 index 685011b..7d1c9bb 100644 --- a/roles/db/templates/my.cnf.j2 +++ b/roles/db/templates/my.cnf.j2 @@ -108,13 +108,15 @@ max_binlog_size = 100M # ssl-key=/etc/mysql/server-key.pem # Galera settings -wsrep_cluster_name=wrestlingdev +wsrep_provider=/usr/lib/galera/libgalera_smm.so + +wsrep_cluster_name="wrestlingdev" wsrep_cluster_address=gcomm://{% for host in groups['db'] %}{{ hostvars[host]['ansible_eth1']['ipv4']['address'] }},{% endfor %} wsrep_sst_method=rsync -wsrep_node_address={{ ansible_eth1["ipv4"]["address"] }} +wsrep_node_address='{{ ansible_eth1["ipv4"]["address"] }}' [mysqldump] quick