From 3842391b7836e1fa63131258c610920d617b624b Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 23 Oct 2015 03:19:31 -0700 Subject: [PATCH] Encode datadir for xtrabackup Xtrabackup previously used a hardcoded datadir. In the latest update to xtrabackup, the my.cnf config option datadir is now parsed. This variable was unset, causing galera to implode. backport: liberty Change-Id: I523d1989575dbe24a891fcae3b6bf56d83e69615 Closes-Bug: #1509281 --- ansible/roles/mariadb/templates/galera.cnf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/mariadb/templates/galera.cnf.j2 b/ansible/roles/mariadb/templates/galera.cnf.j2 index e949af03b9..80cc6d0938 100644 --- a/ansible/roles/mariadb/templates/galera.cnf.j2 +++ b/ansible/roles/mariadb/templates/galera.cnf.j2 @@ -7,6 +7,8 @@ binlog_format=ROW default-storage-engine=innodb innodb_autoinc_lock_mode=2 +datadir=/var/lib/mysql/ + wsrep_cluster_address=gcomm://{% if (groups['mariadb'] | length) > 1 %}{% for host in groups['mariadb'] %}{{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %} wsrep_provider_options="gmcast.listen_addr=tcp://{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }};ist.recv_addr={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_ist_port }}"