From 36847876d321bac7ff36bc97da0c6a9780357776 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Thu, 14 Oct 2021 13:58:56 -0400 Subject: [PATCH 1/2] Update Readme Instructions --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4f42d35..b028d34 100644 --- a/README.md +++ b/README.md @@ -13,5 +13,8 @@ This will enable the packing/deploying to client 'clouds'. 1. `choco install tfsec` +## Install your pre-commit hooks +1. `pre-commit install` + ## Running It! 1. `pre-commit run -a` \ No newline at end of file From 7854318ec1b87bcd05451cc5bc176ba042279e4f Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Thu, 18 Nov 2021 10:51:36 -0500 Subject: [PATCH 2/2] 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" {