Files
shade/devstack/plugin.sh
Ian Wienand abe435afce Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I2e8aff261bd0c3fbb94a0151e3d2eeb46007bc46
2019-03-24 20:36:08 +00:00

55 lines
1.0 KiB
Bash

# Install and configure **shade** library in devstack
#
# To enable shade in devstack add an entry to local.conf that looks like
#
# [[local|localrc]]
# enable_plugin shade https://git.openstack.org/openstack-infra/shade
function preinstall_shade {
:
}
function install_shade {
if use_library_from_git "shade"; then
# don't clone, it'll be done by the plugin install
setup_dev_lib "shade"
else
pip_install "shade"
fi
}
function configure_shade {
:
}
function initialize_shade {
:
}
function unstack_shade {
:
}
function clean_shade {
:
}
# This is the main for plugin.sh
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
preinstall_shade
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
install_shade
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
configure_shade
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
initialize_shade
fi
if [[ "$1" == "unstack" ]]; then
unstack_shade
fi
if [[ "$1" == "clean" ]]; then
clean_shade
fi