Add devstack plugin
Change-Id: Icd5a1b39299b4fd0f473dfd5c343e7493fc68a9d
This commit is contained in:
parent
e6637a8135
commit
27136db585
46
devstack/plugin.sh
Normal file
46
devstack/plugin.sh
Normal file
@ -0,0 +1,46 @@
|
||||
# plugin.sh - DevStack plugin.sh dispatch script mogan-ui
|
||||
|
||||
function install_mogan_ui {
|
||||
# NOTE(crushil): workaround for devstack bug: 1540328
|
||||
# where devstack installs 'test-requirements' but should not do it
|
||||
# for mogan-ui project as it installs Horizon from url.
|
||||
# Remove following two 'mv' commands when mentioned bug is fixed.
|
||||
mv $MOGAN_UI_DIR/test-requirements.txt $MOGAN_UI_DIR/_test-requirements.txt
|
||||
|
||||
setup_develop ${MOGAN_UI_DIR}
|
||||
|
||||
mv $MOGAN_UI_DIR/_test-requirements.txt $MOGAN_UI_DIR/test-requirements.txt
|
||||
}
|
||||
|
||||
# check for service enabled
|
||||
if is_service_enabled horizon && is_service_enabled mogan && is_service_enabled mogan-ui; then
|
||||
|
||||
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
||||
# Set up system services
|
||||
# no-op
|
||||
:
|
||||
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||
# Perform installation of service source
|
||||
echo_summary "Installing Mogan UI"
|
||||
install_mogan_ui
|
||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||
# Configure after the other layer 1 and 2 services have been configured
|
||||
echo_summary "Configuring Mogan UI"
|
||||
cp -a ${MOGAN_UI_DIR}/mogan_ui/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
|
||||
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
||||
# no-op
|
||||
:
|
||||
fi
|
||||
|
||||
if [[ "$1" == "unstack" ]]; then
|
||||
# no-op
|
||||
:
|
||||
fi
|
||||
|
||||
if [[ "$1" == "clean" ]]; then
|
||||
# Remove state and transient data
|
||||
# Remember clean.sh first calls unstack.sh
|
||||
# no-op
|
||||
:
|
||||
fi
|
||||
fi
|
5
devstack/settings
Normal file
5
devstack/settings
Normal file
@ -0,0 +1,5 @@
|
||||
# settings file for mogan-ui plugin
|
||||
enable_service mogan-ui
|
||||
|
||||
# set up default directories
|
||||
MOGAN_UI_DIR=${MOGAN_UI_DIR:=$DEST/mogan-ui}
|
Loading…
Reference in New Issue
Block a user