vitrage-dashboard-devstack

Change-Id: I249f14973f349c3b5662038f82299c2ce22cdad0
This commit is contained in:
Omer Etrog 2016-01-24 10:58:00 +02:00
parent d09d521772
commit 01349a4bfc
3 changed files with 66 additions and 0 deletions

View File

@ -22,6 +22,21 @@ Project Resources
How to use this package
-----------------------
With Devstack
-------------
Add the following to your Devstack local.conf file
::
enable_plugin vitrage-dashboard https://git.openstack.org/openstack/vitrage-dashboard
With Horizon
------------
::
git clone https://github.com/openstack/horizon.git
git clone https://github.com/openstack/vitrage-dashboard.git

49
devstack/plugin.sh Normal file
View File

@ -0,0 +1,49 @@
# plugin.sh - DevStack plugin.sh dispatch script vitrage-dashboard
VITRAGE_DASHBOARD_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd)
function install_vitrage_dashboard {
sudo pip install --upgrade ${VITRAGE_DASHBOARD_DIR}
cp -a ${VITRAGE_DASHBOARD_DIR}/vitragedashboard/static ${DEST}/horizon/
cp -a ${VITRAGE_DASHBOARD_DIR}/vitragedashboard/enabled/* ${DEST}/horizon/openstack_dashboard/enabled/
cp -a ${VITRAGE_DASHBOARD_DIR}/vitrageclient/api/* ${DEST}/horizon/openstack_dashboard/api/
python ${DEST}/horizon/manage.py compress --force
}
# check for service enabled
if is_service_enabled vitrage_dashboard; 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
# no-op
:
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# Configure after the other layer 1 and 2 services have been configured
echo_summary "Installing Vitrage Dashboard"
install_vitrage_dashboard
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize and start the vitrage-dashboard service
# no-op
:
fi
if [[ "$1" == "unstack" ]]; then
# Shut down vitrage-dashboard services
# no-op
:
fi
if [[ "$1" == "clean" ]]; then
# Remove state and transient data
# Remember clean.sh first calls unstack.sh
# no-op
:
fi
fi

2
devstack/settings Normal file
View File

@ -0,0 +1,2 @@
# settings file for vitrage-dashboard plugin
enable_service vitrage-dashboard