From 06cf03cab865143cd661d4fffd60fcd903b4e43d Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Fri, 14 Jun 2019 23:56:57 -0400 Subject: [PATCH] Update git DNS to ensure connectivity --- ahoskingit/terraform/dns_ahoskingit.tf | 6 +-- ahoskingit/terraform/terraform.tfstate | 17 +++---- ahoskingit/terraform/terraform.tfstate.backup | 50 ++++++++++++++++--- 3 files changed, 53 insertions(+), 20 deletions(-) diff --git a/ahoskingit/terraform/dns_ahoskingit.tf b/ahoskingit/terraform/dns_ahoskingit.tf index e209de7..d574818 100644 --- a/ahoskingit/terraform/dns_ahoskingit.tf +++ b/ahoskingit/terraform/dns_ahoskingit.tf @@ -144,9 +144,9 @@ resource "cloudflare_record" "support_ahoskingit" { resource "cloudflare_record" "git_ahoskingit" { domain = "${cloudflare_zone.ahoskingit_com.zone}" name = "git" - type = "CNAME" - proxied = true - value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}" + type = "A" + value = "${var.home_ip}" + #proxied = "true" } resource "cloudflare_record" "gitlab_ahoskingit" { diff --git a/ahoskingit/terraform/terraform.tfstate b/ahoskingit/terraform/terraform.tfstate index 7ad0683..89b5ca8 100644 --- a/ahoskingit/terraform/terraform.tfstate +++ b/ahoskingit/terraform/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 3, "terraform_version": "0.11.11", - "serial": 56, + "serial": 58, "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "modules": [ { @@ -1152,29 +1152,28 @@ "cloudflare_record.git_ahoskingit": { "type": "cloudflare_record", "depends_on": [ - "cloudflare_record.home_ahoskingit", "cloudflare_zone.ahoskingit_com" ], "primary": { - "id": "f29066b1f65d88b8f511c517fa842c6e", + "id": "382ecfc0a65c07da256d93cbb65d3ea9", "attributes": { - "created_on": "2019-06-14T02:59:40.117499Z", + "created_on": "2019-06-15T03:54:58.386976Z", "data.%": "0", "domain": "ahoskingit.com", "hostname": "git.ahoskingit.com", - "id": "f29066b1f65d88b8f511c517fa842c6e", + "id": "382ecfc0a65c07da256d93cbb65d3ea9", "metadata.%": "3", "metadata.auto_added": "false", "metadata.managed_by_apps": "false", "metadata.managed_by_argo_tunnel": "false", - "modified_on": "2019-06-14T02:59:40.117499Z", + "modified_on": "2019-06-15T03:54:58.386976Z", "name": "git", "priority": "0", "proxiable": "true", - "proxied": "true", + "proxied": "false", "ttl": "1", - "type": "CNAME", - "value": "home.ahoskingit.com", + "type": "A", + "value": "99.240.201.161", "zone_id": "6b3fe5493c79efccf633719ab48ef00f" }, "meta": { diff --git a/ahoskingit/terraform/terraform.tfstate.backup b/ahoskingit/terraform/terraform.tfstate.backup index c5a58cc..6f620d2 100755 --- a/ahoskingit/terraform/terraform.tfstate.backup +++ b/ahoskingit/terraform/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 3, "terraform_version": "0.11.11", - "serial": 56, + "serial": 58, "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "modules": [ { @@ -941,6 +941,41 @@ "deposed": [], "provider": "provider.cloudflare" }, + "cloudflare_record.ahoskingit_com_txt": { + "type": "cloudflare_record", + "depends_on": [ + "cloudflare_zone.ahoskingit_com" + ], + "primary": { + "id": "371bdde12dc2ac615f70ddd95304fcda", + "attributes": { + "created_on": "2019-06-14T03:15:32.385907Z", + "data.%": "0", + "domain": "ahoskingit.com", + "hostname": "ahoskingit.com", + "id": "371bdde12dc2ac615f70ddd95304fcda", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-14T03:15:32.385907Z", + "name": "ahoskingit.com", + "priority": "0", + "proxiable": "false", + "proxied": "false", + "ttl": "120", + "type": "TXT", + "value": "google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE", + "zone_id": "6b3fe5493c79efccf633719ab48ef00f" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, "cloudflare_record.ahoskingit_influx": { "type": "cloudflare_record", "depends_on": [], @@ -1117,29 +1152,28 @@ "cloudflare_record.git_ahoskingit": { "type": "cloudflare_record", "depends_on": [ - "cloudflare_record.home_ahoskingit", "cloudflare_zone.ahoskingit_com" ], "primary": { - "id": "f29066b1f65d88b8f511c517fa842c6e", + "id": "382ecfc0a65c07da256d93cbb65d3ea9", "attributes": { - "created_on": "2019-06-14T02:59:40.117499Z", + "created_on": "2019-06-14T03:39:52.471569Z", "data.%": "0", "domain": "ahoskingit.com", "hostname": "git.ahoskingit.com", - "id": "f29066b1f65d88b8f511c517fa842c6e", + "id": "382ecfc0a65c07da256d93cbb65d3ea9", "metadata.%": "3", "metadata.auto_added": "false", "metadata.managed_by_apps": "false", "metadata.managed_by_argo_tunnel": "false", - "modified_on": "2019-06-14T02:59:40.117499Z", + "modified_on": "2019-06-14T03:39:52.471569Z", "name": "git", "priority": "0", "proxiable": "true", "proxied": "true", "ttl": "1", - "type": "CNAME", - "value": "home.ahoskingit.com", + "type": "A", + "value": "99.240.201.161", "zone_id": "6b3fe5493c79efccf633719ab48ef00f" }, "meta": {