Merge "only do a dbsync if on the database node"
This commit is contained in:
@@ -180,10 +180,12 @@ function init_ceilometer {
|
|||||||
sudo chown $STACK_USER $CEILOMETER_AUTH_CACHE_DIR
|
sudo chown $STACK_USER $CEILOMETER_AUTH_CACHE_DIR
|
||||||
rm -f $CEILOMETER_AUTH_CACHE_DIR/*
|
rm -f $CEILOMETER_AUTH_CACHE_DIR/*
|
||||||
|
|
||||||
|
if is_service_enabled mysql postgresql; then
|
||||||
if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
|
if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
|
||||||
recreate_database ceilometer utf8
|
recreate_database ceilometer utf8
|
||||||
$CEILOMETER_BIN_DIR/ceilometer-dbsync
|
$CEILOMETER_BIN_DIR/ceilometer-dbsync
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_ceilometer() - Collect source and prepare
|
# install_ceilometer() - Collect source and prepare
|
||||||
|
|||||||
Reference in New Issue
Block a user