From 832ab98094240051c557982b288fd147cb60d6e5 Mon Sep 17 00:00:00 2001 From: Scott Nowicki Date: Wed, 19 Apr 2017 12:35:51 -0500 Subject: [PATCH] generate random string for hostname --- examples/101-vm-simple-linux/deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/101-vm-simple-linux/deploy.sh b/examples/101-vm-simple-linux/deploy.sh index 00b5266b8c..7e82233bcd 100644 --- a/examples/101-vm-simple-linux/deploy.sh +++ b/examples/101-vm-simple-linux/deploy.sh @@ -2,9 +2,11 @@ set -o errexit -o nounset +HOSTNAME=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 16) + terraform get terraform plan -terraform apply +terraform apply HOSTNAME # echo "Setting git user name" # git config user.name $GH_USER_NAME