4e39fb94c0
After devstack installation with manila, in some cases, database wasn't installed. Change-Id: I12069049d284e3039fa825a1cacda70e12911025
31 lines
872 B
Bash
31 lines
872 B
Bash
# DevStack extras script to install Manila
|
|
|
|
if is_service_enabled manila; then
|
|
if [[ "$1" == "source" ]]; then
|
|
# Initial source
|
|
source $TOP_DIR/lib/manila
|
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing Manila"
|
|
install_manila
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring Manila"
|
|
configure_manila
|
|
echo_summary "Initialing Manila"
|
|
init_manila
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
echo_summary "Starting Manila"
|
|
start_manila
|
|
echo_summary "Creating Manila entities for auth service"
|
|
create_manila_accounts
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
cleanup_manila
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_manila
|
|
sudo rm -rf /etc/manila
|
|
fi
|
|
fi
|