github.com/bigcommerce/nomad@v0.9.3-bc/e2e/bin/run (about) 1 #!/bin/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 '(.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