aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-14 21:12:28 -0800
committerclarkzjw <[email protected]>2023-01-14 21:12:28 -0800
commit908af8393d8f566a79f27314c2a682e365dc1090 (patch)
tree97e95bad539f98f106f78540c687b23378580932 /clarkzjw.cc/infra
parentb007a441d3147d7409edc0a46c82e6839c91ecbc (diff)
downloadhomelab-908af8393d8f566a79f27314c2a682e365dc1090.tar.gz
cloudflare: add atlas ip
Diffstat (limited to 'clarkzjw.cc/infra')
-rw-r--r--clarkzjw.cc/infra/dns.tf11
-rw-r--r--clarkzjw.cc/infra/variables.tf6
2 files changed, 17 insertions, 0 deletions
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" {
19 proxied = true 19 proxied = true
20} 20}
21 21
22# atlas
23resource "cloudflare_record" "atlas" {
24 zone_id = data.cloudflare_zones.homelab_main_domain.zones[0].id
25 name = "atlas.${var.homelab_www_domain}"
26 value = var.atlas_ip
27 type = "A"
28
29 ttl = 60
30 proxied = false
31}
32
22# bt 33# bt
23resource "cloudflare_record" "bt" { 34resource "cloudflare_record" "bt" {
24 zone_id = data.cloudflare_zones.homelab_main_domain.zones[0].id 35 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" {
37 type = string 37 type = string
38 sensitive = false 38 sensitive = false
39} 39}
40
41variable "atlas_ip" {
42 description = "IP address for Atlas main NAS"
43 type = string
44 sensitive = false
45}
Powered by cgit v1.2.3 (git 2.41.0)