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 --- .../config/atlas/ansible/roles/debian_init/tasks/main.yaml | 1 + clarkzjw.cc/infra/dns.tf | 11 +++++++++++ clarkzjw.cc/infra/variables.tf | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml b/clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml index e53d3eb..b19610d 100644 --- a/clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml +++ b/clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml @@ -17,6 +17,7 @@ - python3 - python3-dev - python3-pip + - iperf3 - unzip - gnupg - rsync 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