diff --git a/.travis.yml b/.travis.yml index 75da4d033..6cbee27e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,9 @@ branches: - /^(?i:topic)-.*$/ # install terraform -before_deploy: cd $TEST_DIR && ./before_deploy.sh +before_deploy: + - export KEY=$(cat /dev/urandom | tr -cd 'a-z' | head -c 12) + - export PASSWORD=$KEY$(cat /dev/urandom | tr -cd 'A-Z' | head -c 2)$(cat /dev/urandom | tr -cd '0-9' | head -c 2) # terraform deploy script deploy: diff --git a/examples/azure-vm-simple-linux/before_deploy.sh b/examples/azure-vm-simple-linux/before_deploy.sh deleted file mode 100755 index d20bda914..000000000 --- a/examples/azure-vm-simple-linux/before_deploy.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -set -o errexit -o nounset - -export KEY=$(cat /dev/urandom | tr -cd 'a-z' | head -c 12) -export PASSWORD=$KEY$(cat /dev/urandom | tr -cd 'A-Z' | head -c 2)$(cat /dev/urandom | tr -cd '0-9' | head -c 2)