From 7854318ec1b87bcd05451cc5bc176ba042279e4f Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Thu, 18 Nov 2021 10:51:36 -0500 Subject: [PATCH] Add Git and Food records --- ahoskingit/terraform/dns_ahosking.tf | 18 ++++++++++++++++++ ahoskingit/terraform/dns_ahoskingit.tf | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ahoskingit/terraform/dns_ahosking.tf b/ahoskingit/terraform/dns_ahosking.tf index 801586d..268650b 100644 --- a/ahoskingit/terraform/dns_ahosking.tf +++ b/ahoskingit/terraform/dns_ahosking.tf @@ -70,6 +70,24 @@ resource "cloudflare_record" "ahosking_radarr" { proxied = true } +resource "cloudflare_record" "ahosking_food" { + zone_id = cloudflare_zone.ahosking_com.id + name = "food" + type = "CNAME" + ttl = "1" + proxied = true + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone]) +} + +resource "cloudflare_record" "ahosking_git" { + zone_id = cloudflare_zone.ahosking_com.id + name = "git" + type = "CNAME" + ttl = "1" + proxied = true + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone]) +} + # email MX value for DNS resource "cloudflare_record" "ahosking_mx" { zone_id = cloudflare_zone.ahosking_com.id diff --git a/ahoskingit/terraform/dns_ahoskingit.tf b/ahoskingit/terraform/dns_ahoskingit.tf index 7fd0679..a123a1c 100644 --- a/ahoskingit/terraform/dns_ahoskingit.tf +++ b/ahoskingit/terraform/dns_ahoskingit.tf @@ -187,9 +187,9 @@ resource "cloudflare_record" "support_ahoskingit" { resource "cloudflare_record" "git_ahoskingit" { zone_id = cloudflare_zone.ahoskingit_com.id name = "git" - type = "A" - value = var.home_ip - #proxied = "true" + type = "CNAME" + proxied = "true" + value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone]) } resource "cloudflare_record" "gitlab_ahoskingit" {