From 908af8393d8f566a79f27314c2a682e365dc1090 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Sat, 14 Jan 2023 21:12:28 -0800 Subject: cloudflare: add atlas ip --- clarkzjw.cc/infra/dns.tf | 11 +++++++++++ clarkzjw.cc/infra/variables.tf | 6 ++++++ 2 files changed, 17 insertions(+) (limited to 'clarkzjw.cc/infra') diff --git a/clarkzjw.cc/infra/dns.tf b/clarkzjw.cc/infra/dns.tf index 1240399..dd03076 100644 --- a/clarkzjw.cc/infra/dns.tf +++ b/clarkzjw.cc/infra/dns.tf @@ -19,6 +19,17 @@ resource "cloudflare_record" "main" { proxied = true } +# atlas +resource "cloudflare_record" "atlas" { + zone_id = data.cloudflare_zones.homelab_main_domain.zones[0].id + name = "atlas.${var.homelab_www_domain}" + value = var.atlas_ip + type = "A" + + ttl = 60 + proxied = false +} + # bt resource "cloudflare_record" "bt" { zone_id = data.cloudflare_zones.homelab_main_domain.zones[0].id diff --git a/clarkzjw.cc/infra/variables.tf b/clarkzjw.cc/infra/variables.tf index bb5b06d..856cab7 100644 --- a/clarkzjw.cc/infra/variables.tf +++ b/clarkzjw.cc/infra/variables.tf @@ -37,3 +37,9 @@ variable "proxmox_ip" { type = string sensitive = false } + +variable "atlas_ip" { + description = "IP address for Atlas main NAS" + type = string + sensitive = false +} -- cgit v1.2.3