add devstack libs(not test)
This commit is contained in:
parent
bc34f111c3
commit
f92ba42ccf
56
devstack/plugin.sh
Executable file
56
devstack/plugin.sh
Executable file
@ -0,0 +1,56 @@
|
||||
# plugin.sh - DevStack plugin.sh dispatch script Scalpels
|
||||
|
||||
SCALPELS_DIR=$DEST/scalpels
|
||||
SCALPELS_REPO=${SCALPELS_REPO:-${GIT_BASE}/openstack/scalpels.git}
|
||||
SCALPELS_BRANCH=${SCALPELS_BRANCH:-master}
|
||||
|
||||
function install_scalpels {
|
||||
git_clone $SCALPELS_REPO $SCALPELS_DIR $SCALPELS_BRANCH
|
||||
setup_develop $SCALPELS_DIR
|
||||
}
|
||||
|
||||
function init_scalpels {
|
||||
sca setup
|
||||
}
|
||||
|
||||
function configure_scalpels {
|
||||
echo "nothing need config now."
|
||||
}
|
||||
|
||||
# check for service enabled
|
||||
if is_service_enabled scalpels; then
|
||||
|
||||
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
||||
# Set up system services
|
||||
echo_summary "Configuring system services scalpels"
|
||||
install_package cowsay
|
||||
|
||||
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||
# Perform installation of service source
|
||||
echo_summary "Installing scalpels"
|
||||
install_scalpels
|
||||
|
||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||
# Configure after the other layer 1 and 2 services have been configured
|
||||
echo_summary "Configuring scalpels"
|
||||
configure_scalpels
|
||||
|
||||
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
||||
# Initialize and start the scalpels service
|
||||
echo_summary "Initializing scalpels"
|
||||
init_scalpels
|
||||
fi
|
||||
|
||||
if [[ "$1" == "unstack" ]]; then
|
||||
# Shut down scalpels services
|
||||
# no-op
|
||||
:
|
||||
fi
|
||||
|
||||
if [[ "$1" == "clean" ]]; then
|
||||
# Remove state and transient data
|
||||
# Remember clean.sh first calls unstack.sh
|
||||
# no-op
|
||||
:
|
||||
fi
|
||||
fi
|
1
devstack/settings
Normal file
1
devstack/settings
Normal file
@ -0,0 +1 @@
|
||||
enable_service scalpels
|
Loading…
Reference in New Issue
Block a user