Remove config-internal from galera

Change-Id: I1d0c39a73d0cdd558c3f9fe3d3706430ee9976a2
Partially-implements: blueprint remove-config-internal
This commit is contained in:
Steven Dake 2015-08-07 09:14:14 -07:00
parent af0c00a44d
commit 9f730537d2
3 changed files with 1 additions and 25 deletions

View File

@ -1 +0,0 @@
../../../common/galera/config-internal.sh

View File

@ -1,23 +0,0 @@
#!/bin/bash
. /opt/kolla/kolla-common.sh
. /opt/kolla/config-galera.sh
check_required_vars DB_CLUSTER_BIND_ADDRESS \
DB_CLUSTER_INIT_DB \
DB_CLUSTER_NAME \
DB_CLUSTER_NODES \
DB_CLUSTER_WSREP_METHOD \
DB_ROOT_PASSWORD
CFG=/etc/my.cnf.d/server.cnf
DB_CLUSTER_INIT_SQL=/tmp/mysql-first-time.sql
prepare_db
if [[ "${DB_CLUSTER_INIT_DB}" == "true" ]] && ! [[ -a /var/lib/mysql/cluster.exists ]]; then
DB_CLUSTER_IS_MASTER_NODE="--wsrep-new-cluster"
touch /var/lib/mysql/cluster.exists
fi
mysqld_safe --init-file=$DB_CLUSTER_INIT_SQL $DB_CLUSTER_IS_MASTER_NODE

View File

@ -8,7 +8,7 @@ ARGS=""
# loading common functions # loading common functions
source /opt/kolla/kolla-common.sh source /opt/kolla/kolla-common.sh
# config-internal script exec out of this function, it does not return here # Execute config strategy
set_configs set_configs
# loading functions # loading functions