0d598bf01d
Allows users to explicitly specify which type of tenks deployment they wish to create / destroy. Preserves existing behaviour with defaults. Modifies Zuul tests to use new tenks-deploy entrypoints. Change-Id: I9aafed8481fd7564c0fc0abe5f6b21eceb824d75
27 lines
465 B
Bash
Executable File
27 lines
465 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# Simple script to teardown a Tenks cluster. This should be executed from
|
|
# within the VM. Arguments:
|
|
# $1: The path to the Tenks repo.
|
|
|
|
PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
source "${PARENT}/functions"
|
|
|
|
|
|
function main {
|
|
if [ -z ${1+x} ]; then
|
|
echo "Usage: $0 <tenks repo path>"
|
|
return 1
|
|
fi
|
|
tenks_path="$1"
|
|
|
|
config_init
|
|
tenks_teardown "$tenks_path" overcloud
|
|
}
|
|
|
|
main "$@"
|