cyborg/devstack/plugin.sh
Sean Mooney 76bdd3f8a3 add support for installing cyborg client
This change adds support for installing the
python-cyborgclient from git. By default it is installed
but it can be disabled by setting CYBORG_CLIENT_INSTALL=False.
The version and repo can be set using CYBORG_CLIENT_REPO and
CYBORG_CLIENT_BRANCH.

Change-Id: I1dd616fe1e0c5b03118a23fc5afe2a4d3bb3686d
2020-03-16 13:50:00 +00:00

53 lines
1.7 KiB
Bash

#!/bin/bash
# plugin.sh - devstack plugin for cyborg
# devstack plugin contract defined at:
# https://docs.openstack.org/devstack/latest/plugins.html
echo_summary "cyborg devstack plugin.sh called: $1/$2"
source $DEST/cyborg/devstack/lib/cyborg
source $DEST/cyborg/devstack/lib/opae
case $1 in
"stack")
case $2 in
"pre-install")
pre_install_agent
clone_cyborg_client
;;
"install")
echo_summary "Installing Cyborg"
install_cyborg
install_cyborg_client
;;
"post-config")
# stack/post-config - Called after the layer 0 and 2 services
# have been configured. All configuration files for enabled
# services should exist at this point.
echo_summary "Configuring Cyborg"
configure_cyborg
create_cyborg_accounts
;;
"extra")
# stack/extra - Called near the end after layer 1 and 2
# services have been started.
# Initialize cyborg
init_cyborg
# Start the cyborg API and cyborg taskmgr components
echo_summary "Starting Cyborg"
start_cyborg
;;
esac
;;
"unstack")
# unstack - Called by unstack.sh before other services are shut down.
stop_cyborg
;;
"clean")
# clean - Called by clean.sh before other services are cleaned, but after
# unstack.sh has been called.
cleanup_cyborg
cleanup_agent
;;
esac