summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/docker/docker-cluster.sh4
-rw-r--r--tools/kubernetes/demo_deploy.sh2
-rw-r--r--tools/rancher/demo_deploy.sh4
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/docker/docker-cluster.sh b/tools/docker/docker-cluster.sh
index 3d0a34b..abb4c31 100644
--- a/tools/docker/docker-cluster.sh
+++ b/tools/docker/docker-cluster.sh
@@ -75,7 +75,7 @@ EOF
# jq is used for parsing API reponses
sudo apt-get install -y jq
- scp -o StrictHostKeyChecking=no /tmp/prereqs.sh ubuntu@$master:/home/ubuntu/prereqs.sh
+ scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/prereqs.sh ubuntu@$master:/home/ubuntu/prereqs.sh
ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$master bash /home/ubuntu/prereqs.sh
# activate docker API
# Per https://www.ivankrizsan.se/2016/05/18/enabling-docker-remote-api-on-ubuntu-16-04/
@@ -97,7 +97,7 @@ EOF
token=$(ssh -o StrictHostKeyChecking=no -x ubuntu@$master sudo docker swarm join-token worker | grep docker)
for worker in $workers; do
log "setting up worker at $worker"
- scp -o StrictHostKeyChecking=no /tmp/prereqs.sh ubuntu@$worker:/home/ubuntu/.
+ scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/prereqs.sh ubuntu@$worker:/home/ubuntu/.
ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$worker bash /home/ubuntu/prereqs.sh
ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$worker sudo $token
done
diff --git a/tools/kubernetes/demo_deploy.sh b/tools/kubernetes/demo_deploy.sh
index 3ddd01d..b91f828 100644
--- a/tools/kubernetes/demo_deploy.sh
+++ b/tools/kubernetes/demo_deploy.sh
@@ -55,7 +55,7 @@ source ~/models/tools/maas/deploy.sh $1 "$2" $9
eval `ssh-agent`
ssh-add $key
if [[ "x$extras" != "x" ]]; then source $extras; fi
-scp -o StrictHostKeyChecking=no $key ubuntu@$master:/home/ubuntu/$key
+scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $key ubuntu@$master:/home/ubuntu/$key
echo "$0 $(date): Setting up kubernetes..."
scp -r -o StrictHostKeyChecking=no ~/models/tools/kubernetes/* \
ubuntu@$master:/home/ubuntu/.
diff --git a/tools/rancher/demo_deploy.sh b/tools/rancher/demo_deploy.sh
index 1ee980d..c76b9f8 100644
--- a/tools/rancher/demo_deploy.sh
+++ b/tools/rancher/demo_deploy.sh
@@ -45,8 +45,8 @@ source ~/models/tools/maas/deploy.sh $1 "$2" $5
eval `ssh-agent`
ssh-add $key
if [[ "x$extras" != "x" ]]; then source $extras; fi
-scp -o StrictHostKeyChecking=no $key ubuntu@$master:/home/ubuntu/$key
-scp -o StrictHostKeyChecking=no ~/models/tools/rancher/rancher-cluster.sh \
+scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $key ubuntu@$master:/home/ubuntu/$key
+scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ~/models/tools/rancher/rancher-cluster.sh \
ubuntu@$master:/home/ubuntu/.
echo "Setting up Rancher..."
ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$master <<EOF