mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
CI: fix terraform
- add default testcase - fix ansible ssh connection
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
if [[ -v TESTCASE ]]; then
|
||||
TESTCASE_FILE=files/${TESTCASE}.yml
|
||||
else
|
||||
TESTCASE_FILE=common_vars.yml
|
||||
TESTCASE=default
|
||||
fi
|
||||
|
||||
echo "TESTCASE is $TESTCASE"
|
||||
|
||||
source tests/files/$TESTCASE || true
|
||||
@@ -56,7 +63,7 @@ playbook=$1
|
||||
shift
|
||||
ansible-playbook \
|
||||
-e @tests/common_vars.yml \
|
||||
-e @tests/files/${TESTCASE}.yml \
|
||||
-e @tests/${TESTCASE_FILE} \
|
||||
-e local_release_dir=${PWD}/downloads \
|
||||
"$@" \
|
||||
${playbook}
|
||||
|
||||
Reference in New Issue
Block a user