efbfd7912b
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
9 lines
232 B
Bash
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
|