diff options
Diffstat (limited to 'clarkzjw.cc/infra')
-rw-r--r-- | clarkzjw.cc/infra/dns.tf | 11 | ||||
-rw-r--r-- | clarkzjw.cc/infra/variables.tf | 6 |
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 | ||
23 | resource "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 |
23 | resource "cloudflare_record" "bt" { | 34 | resource "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 | |||
41 | variable "atlas_ip" { | ||
42 | description = "IP address for Atlas main NAS" | ||
43 | type = string | ||
44 | sensitive = false | ||
45 | } | ||