kolla-ansible/docker/common/galera/config-external.sh
Sam Yaple efbfd7912b Ansible Mariadb w/ Galera support
Adds initial support for Mariadb with Galera replication in Ansible
using the CONFIG_EXTERNAL methods.

Additionally, this refactors some of the Galera config script to allow
for reuse by CONFIG_EXTERNAL.

Partially Implements: blueprint ansible-service

Change-Id: I566fea0376ecca39fc8a5167f9ff9ff434ea7b7e
2015-07-03 13:56:06 +00:00

9 lines
232 B
Bash

#!/bin/bash
# Cluster configuration
if [[ -f /opt/kolla/mariadb/galera.cnf ]]; then
cp /opt/kolla/mariadb/galera.cnf /etc/my.cnf.d/galera.cnf
chown mysql: /etc/my.cnf.d/galera.cnf
chmod 0600 /etc/my.cnf.d/galera.cnf
fi