github.com/hernad/nomad@v1.6.112/e2e/bin/run (about) 1 #!/usr/bin/env bash 2 3 set -e 4 5 if [ "$1" == "" ]; then 6 echo "./run.sh commands..." 7 exit 1 8 fi 9 10 nodes=$(terraform output -json -state=terraform/terraform.tfstate | jq -r '(.linux_clients,.servers).value[]') 11 for node in $nodes 12 do 13 echo Executing: ssh -i terraform/keys/*.pem ubuntu@"$node" "$@" 14 ssh -o StrictHostKeyChecking=accept-new -i terraform/keys/*.pem ubuntu@"$node" "$@" 15 done