aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-08-20 14:32:34 +0000
committerSam Yaple <sam@yaple.net>2015-08-21 13:10:05 +0000
commit8f7ff277794a3daac354cff1eb2b2d5537b77d64 (patch)
tree3ed9c90e4835e4e2b8f048fed4e21376a56a9286 /ansible
parent91088e595ff2406231eae707d9ca71a2ad36199c (diff)
downloadkolla-8f7ff277794a3daac354cff1eb2b2d5537b77d64.tar.gz
kolla-8f7ff277794a3daac354cff1eb2b2d5537b77d64.zip
Fix MariaDB for ubuntu
In MariaDB we adjust the dependecies of what we install there as well adding only what is appropriate for the install. In Ansible we adjust some templates to all work around differences between the different Linux families. Change-Id: Ibc26e2f4d4a732630632d3ed27fb595b6fe019d2 Partially-Implements: blueprint install-from-ubuntu
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/mariadb/templates/galera.cnf.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/roles/mariadb/templates/galera.cnf.j2 b/ansible/roles/mariadb/templates/galera.cnf.j2
index c44bce951..b59d25ce7 100644
--- a/ansible/roles/mariadb/templates/galera.cnf.j2
+++ b/ansible/roles/mariadb/templates/galera.cnf.j2
@@ -1,3 +1,4 @@
+{% set wsrep_driver = '/usr/lib/galera/libgalera_smm.so' if kolla_base_distro == 'ubuntu' else '/usr/lib64/galera/libgalera_smm.so' %}
[mysqld]
bind-address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
port={{ mariadb_port }}
@@ -13,7 +14,7 @@ wsrep_provider_options="gmcast.listen_addr=tcp://{{ hostvars[inventory_hostname]
wsrep_node_address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}
wsrep_sst_receive_address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_sst_port }}
-wsrep_provider=/usr/lib64/galera/libgalera_smm.so
+wsrep_provider={{ wsrep_driver }}
wsrep_cluster_name="{{ database_cluster_name }}"
wsrep_node_name={{ ansible_hostname }}
wsrep_sst_method=xtrabackup-v2