azure is awfully particular for certain strings
This commit is contained in:
parent
e0208f48ba
commit
af3de7b7df
|
@ -24,6 +24,7 @@ deploy:
|
|||
repo: 10thmagnitude/terraform
|
||||
branch: topic-101-vm-simple-linux
|
||||
|
||||
# TODO: possibly use Azure CLI to delete the resource group
|
||||
after_deploy:
|
||||
- provider: script
|
||||
script: terraform destroy
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
set -o errexit -o nounset
|
||||
|
||||
# generate a unique string for CI deployment
|
||||
KEY=$(cat /dev/urandom | tr -cd 'a-z' | head -c 8)
|
||||
KEY+=$(cat /dev/urandom | tr -cd 'A-Z' | head -c 4)
|
||||
KEY+=$(cat /dev/urandom | tr -cd '0-9' | head -c 4)
|
||||
PASSWORD=KEY+"#"
|
||||
KEY=$(cat /dev/urandom | tr -cd 'a-z' | head -c 12)
|
||||
PASSWORD=KEY
|
||||
PASSWORD+=$(cat /dev/urandom | tr -cd 'A-Z' | head -c 2)
|
||||
PASSWORD+=$(cat /dev/urandom | tr -cd '0-9' | head -c 2)
|
||||
|
||||
terraform get
|
||||
|
||||
|
|
Loading…
Reference in New Issue