From fe1dde4ffe0470f79ae4475bc63983b49716e080 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 31 Dec 2020 14:58:30 -0500 Subject: [PATCH] Point syncthing.jeremydormitzer.com at packer syncthing droplet --- mgmt/do-jeremydormitzer-com/terraform/data.tf | 2 +- mgmt/do-jeremydormitzer-com/terraform/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mgmt/do-jeremydormitzer-com/terraform/data.tf b/mgmt/do-jeremydormitzer-com/terraform/data.tf index c1700b4..c3d08a1 100644 --- a/mgmt/do-jeremydormitzer-com/terraform/data.tf +++ b/mgmt/do-jeremydormitzer-com/terraform/data.tf @@ -39,6 +39,6 @@ data "terraform_remote_state" "syncthing" { region = "us-east-1" endpoint = "nyc3.digitaloceanspaces.com" bucket = "jdormit-tf-state" - key = "prod/syncthing.tfstate" + key = "prod/syncthing-packer.tfstate" } } diff --git a/mgmt/do-jeremydormitzer-com/terraform/main.tf b/mgmt/do-jeremydormitzer-com/terraform/main.tf index e4a2646..0037312 100644 --- a/mgmt/do-jeremydormitzer-com/terraform/main.tf +++ b/mgmt/do-jeremydormitzer-com/terraform/main.tf @@ -80,7 +80,7 @@ resource "digitalocean_record" "syncthing" { domain = digitalocean_domain.jeremydormitzer_com.name type = "A" name = "syncthing" - value = data.terraform_remote_state.syncthing.outputs.syncthing_ip_address + value = data.terraform_remote_state.syncthing.outputs.ip_address ttl = 3600 }