devstack/extras.d/70-gantt.sh
Don Dugger f84eb5ba43 Add support for Gantt
Gantt is the new breakout of the scheduler code from the Nova
source tree.  These changes allow devstack to install/configure/startup
gantt as the scheduler service for openstack.

Change-Id: Ia2b6001f5ccf2469ee9fdee67564c9a915a13862
2014-01-30 14:47:50 -07:00

32 lines
774 B
Bash

# gantt.sh - Devstack extras script to install Gantt
if is_service_enabled n-sch; then
disable_service gantt
fi
if is_service_enabled gantt; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/gantt
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Gantt"
install_gantt
cleanup_gantt
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Gantt"
configure_gantt
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize gantt
init_gantt
# Start gantt
echo_summary "Starting Gantt"
start_gantt
fi
if [[ "$1" == "unstack" ]]; then
stop_gantt
fi
fi