From 115f391ab8dc24988c11edbf9219d5bb121c7fc0 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Tue, 23 Aug 2022 17:46:25 +0200 Subject: [PATCH] add the rest of narwhal domains --- namecheap.tf | 49 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/namecheap.tf b/namecheap.tf index 14071cd..7764b65 100644 --- a/namecheap.tf +++ b/namecheap.tf @@ -40,26 +40,53 @@ variable "caladan-hostnames" { // letsencrypt certificates. No need to set the AAAA record. variable "narwhal-hostnames" { type = set(string) - default = ["authelia"] + default = [ + "authelia", + "calibre", + "dav", + "esphome", + "git.narwhal", + "gotify", + "grafana", + "hass", + "homer", + "influxdb", + "jellyfin", + "kodi", + "mirrors", + "mpd", + "music", + "nextcloud", + "nodered", + "openbooks", + "pg", + "rainloop", + "registry", + "rss-bridge", + "syncthing", + "transmission", + "wallabag", + "woodpecker", + ] } provider "namecheap" { - user_name = "gthar" - api_user = "gthar" - client_ip = var.caladan-ips.v4 + user_name = "gthar" + api_user = "gthar" + client_ip = var.caladan-ips.v4 use_sandbox = false } resource "namecheap_domain_records" "monotremata-xyz" { domain = "monotremata.xyz" - mode = "MERGE" // maybe eventually move to OVERWRITE + mode = "MERGE" // maybe eventually move to OVERWRITE dynamic "record" { for_each = var.caladan-hostnames content { hostname = record.value - type = "A" - address = var.caladan-ips.v4 + type = "A" + address = var.caladan-ips.v4 } } @@ -67,8 +94,8 @@ resource "namecheap_domain_records" "monotremata-xyz" { for_each = var.narwhal-hostnames content { hostname = record.value - type = "A" - address = var.caladan-ips.v4 + type = "A" + address = var.caladan-ips.v4 } } @@ -76,8 +103,8 @@ resource "namecheap_domain_records" "monotremata-xyz" { for_each = var.caladan-hostnames content { hostname = record.value - type = "AAAA" - address = var.caladan-ips.v6 + type = "AAAA" + address = var.caladan-ips.v6 } }