rally/contrib/devstack/extras.d/70-rally.sh
Ilya Kharin b486db9d5f Extra scripts with DevStack support
DevStack project don't merge support of stackforge projects into master.
There is an alternative support to use the devstack infrastructure. The
mechanism based on ability of implementing hooks such as extras.d.

Implemented functionality of the Rally library:
* Install Rally from repository
* Configure Rally and create database tables
* Create a special tenant
* Optionally add devstack installation as a deployment

blueprint rally-devstack-extras

Change-Id: I43b74db203ca385d321ba9d6f79c2bd21f947e13
2014-01-16 19:00:04 +04:00

19 lines
587 B
Bash

# rally.sh - DevStack extras script to install Rally
if is_service_enabled rally; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/rally
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Rally"
install_rally
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Rally"
configure_rally
create_rally_accounts
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Rally"
init_rally
fi
fi