devstack: support to be enabled with different plugin name

Allow rally to be installed by devstack through a different plugin
name, e.g:

    enable_plugin test-rally http://github.com/rally/rally.git master

Change-Id: I43be7f7beba83ac63f6e16bdac216a41f4e2f057
Closes-Bug: #1560833
This commit is contained in:
Lianhao Lu 2016-03-23 15:54:10 +08:00
parent fb51361337
commit dd1bc6ed6c
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@ set +o xtrace
# --------
# Set up default directories
RALLY_DIR=$DEST/rally
DIR=$(dirname ${BASH_SOURCE[0]})
RALLY_DIR=$(readlink -m $DIR/../..)
RALLY_CONF_DIR=${RALLY_CONF_DIR:-/etc/rally}
RALLY_CONF_FILE=rally.conf

View File

@ -4,7 +4,8 @@
XTRACE=$(set +o | grep xtrace)
set -o xtrace
source $DEST/rally/devstack/lib/rally
DIR=$(dirname ${BASH_SOURCE[0]})
source $DIR/lib/rally
if [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Rally"