Refactor DNS records and local variables; replace data source with local values for Contabo instance and add IMAP/SMTP CNAME records

This commit is contained in:
2025-03-15 22:51:05 +01:00
parent afe0a1010d
commit 52b1649c3e
5 changed files with 63 additions and 80 deletions
+13 -2
View File
@@ -1,3 +1,14 @@
data "contabo_instance" "microk8s" {
id = "201912751"
# Contabo is down for now, so we can't use it for now
# data "contabo_instance" "microk8s" {
# id = "201912751"
# }
locals {
contabo_instance = {
id = "201912751"
name = "vmi1912751" # data.contabo_instance.microk8s.name
hostname = "microk8s"
ip = "147.78.131.194" # data.contabo_instance.microk8s.ip_config[0].v4[0].ip
}
}