summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRihab Banday <rihab.banday@ericsson.com>2020-08-19 07:35:24 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-08-19 07:35:24 +0000
commita0809c1a7c96820f659fd9c57b48008b76ac5b13 (patch)
treef415e5373ef4d22deeb21d7802c8bb46f2f25718
parent42b1b4244bfae0895cc27153aae13d08bd9c14ce (diff)
parente5339f1e3f76b1677932b298a7ab32f592b6fe39 (diff)
Merge "Disable strict host checking everywhere"
-rwxr-xr-xfunctions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.sh b/functions.sh
index 5c37843..fd19209 100755
--- a/functions.sh
+++ b/functions.sh
@@ -105,7 +105,7 @@ copy_files_jump() {
# Host Provisioning
provision_hosts() {
# shellcheck disable=SC2087
- ssh -tT "$USERNAME"@"$(get_vm_ip)" << EOF
+ ssh -o StrictHostKeyChecking=no -tT "$USERNAME"@"$(get_vm_ip)" << EOF
# Install and run cloud-infra
if [ ! -d "${PROJECT_ROOT}/engine" ]; then
ssh-keygen -t rsa -N "" -f ${PROJECT_ROOT}/.ssh/id_rsa
@@ -128,7 +128,7 @@ setup_network() {
WORKER_IP=$(yq r "$CURRENTPATH"/hw_config/"$VENDOR"/pdf.yaml nodes.[1].interfaces.["$PXE_IF_INDEX"].address)
# SSH to jumphost
# shellcheck disable=SC2087
- ssh -tT "$USERNAME"@"$(get_vm_ip)" << EOF
+ ssh -o StrictHostKeyChecking=no -tT "$USERNAME"@"$(get_vm_ip)" << EOF
ssh -o StrictHostKeyChecking=no root@$MASTER_IP \
'bash -s' < ${PROJECT_ROOT}/${VENDOR}/setup_network.sh
ssh -o StrictHostKeyChecking=no root@$WORKER_IP \
@@ -139,7 +139,7 @@ EOF
# k8s Provisioning (currently BMRA)
provision_k8s() {
# shellcheck disable=SC2087
- ssh -tT "$USERNAME"@"$(get_vm_ip)" << EOF
+ ssh -o StrictHostKeyChecking=no -tT "$USERNAME"@"$(get_vm_ip)" << EOF
# Install BMRA
if [ ! -d "${PROJECT_ROOT}/container-experience-kits" ]; then
curl -fsSL https://get.docker.com/ | sh