Douglas Mendizábal a1e5404416 Add support for dogtag in devstack testing
Added scripts for installing dogtag and configuring barbican to use the
dogtag plugin in order to add a new gate that run the functional test
suite against dogtag.

Change-Id: I40dfdbc414dbc4fa07b5a5cbed074e6d340c7778
2015-02-20 10:52:04 -06:00

34 lines
921 B
Bash
Executable File

#!/bin/sh
# DevStack extras script to install Barbican
if is_service_enabled barbican; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/barbican
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Barbican"
install_barbican
install_barbicanclient
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Barbican"
configure_barbican
if [[ -n $BARBICAN_USE_DOGTAG ]]; then
configure_dogtag_plugin
fi
configure_barbicanclient
if is_service_enabled key; then
create_barbican_accounts
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Barbican"
init_barbican
start_barbican
fi
if [[ "$1" == "unstack" ]]; then
stop_barbican
fi
fi