From 95fb2c190a2143ab84be1b18fdd2ec587e54d05e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Jun 2019 09:03:58 -0300 Subject: Provision DNS entries using DigitalOcean instead of DNS registrar This way we can implement dynamic (provision-time) Floating IP, instead of a hardcoded pre-created Floating IP address. Related changes: - remove =terraform-godaddy= provider, use =digitalocean_record= instead; - create =generated-known-hosts= after provisioning instead of during =setup.sh=: use the =$(terraform output public_floating_ip)= value to make this file dynamic; - remote the =$PINNED_IP= and =$TF_VAR_floating_ip= variables; - add type and descriptions to variable declarations in Terraform recipe. --- scripts/ci/setup.sh | 1 - 1 file changed, 1 deletion(-) (limited to 'scripts/ci/setup.sh') diff --git a/scripts/ci/setup.sh b/scripts/ci/setup.sh index f134c6a..d9ac70c 100755 --- a/scripts/ci/setup.sh +++ b/scripts/ci/setup.sh @@ -33,7 +33,6 @@ export SSH_SERVER_PUBLIC_KEY # https://stackoverflow.com/questions/24963705/is-there-an-escape-character-for-envsubst export DOLLAR='$' -echo "${TLD},${PINNED_IP} ssh-rsa $(echo "${SSH_SERVER_PUBLIC_KEY}" | awk '{print $2}')" > ./generated-known-hosts.txt envsubst < ./ssh.env.conf >> ~/.ssh/config envsubst < ./hosts.env > ./hosts envsubst < ./docker-compose.env.yaml > ./docker-compose.yaml -- cgit v1.2.3