Adding wildcard forward for haumdaucher.de

This commit is contained in:
Moritz Graf 2020-04-04 13:15:18 +02:00
parent 37bd4363d4
commit 678257c59a
3 changed files with 24 additions and 40 deletions

View File

@ -28,14 +28,14 @@ variable "subdomains_haumdaucher" {
default = ["corona"]
}
resource "ovh_domain_zone_record" "haumdaucher_subdomains" {
for_each = toset( var.subdomains_haumdaucher )
zone = "haumdaucher.de"
subdomain = each.key
fieldtype = "CNAME"
ttl = local.ttl
target = "haumdaucher.de."
}
# resource "ovh_domain_zone_record" "haumdaucher_subdomains" {
# for_each = toset( var.subdomains_haumdaucher )
# zone = "haumdaucher.de"
# subdomain = each.key
# fieldtype = "CNAME"
# ttl = local.ttl
# target = "haumdaucher.de."
# }
# ## graf.me -> problems with domain
variable "domains" {
@ -52,6 +52,14 @@ resource "ovh_domain_zone_record" "haumdaucher_domain" {
target = "91.121.84.190"
}
resource "ovh_domain_zone_record" "haumdaucher_wildcard_domain" {
zone = "haumdaucher.de"
subdomain = "*"
fieldtype = "A"
ttl = local.ttl
target = "91.121.84.190"
}
resource "ovh_domain_zone_record" "mail_moritzgraf" {
zone = "moritzgraf.de"

View File

@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "0.12.20",
"serial": 69,
"serial": 73,
"lineage": "8aff5d23-05f6-10eb-0ae6-1084c787677e",
"outputs": {},
"resources": [
@ -228,18 +228,16 @@
{
"mode": "managed",
"type": "ovh_domain_zone_record",
"name": "haumdaucher_subdomains",
"each": "map",
"name": "haumdaucher_wildcard_domain",
"provider": "provider.ovh",
"instances": [
{
"index_key": "corona",
"schema_version": 0,
"attributes": {
"fieldtype": "CNAME",
"id": "5110449971",
"subdomain": "corona",
"target": "haumdaucher.de.",
"fieldtype": "A",
"id": "5112336220",
"subdomain": "*",
"target": "91.121.84.190",
"ttl": 60,
"zone": "haumdaucher.de"
},

View File

@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "0.12.20",
"serial": 67,
"serial": 71,
"lineage": "8aff5d23-05f6-10eb-0ae6-1084c787677e",
"outputs": {},
"resources": [
@ -217,29 +217,7 @@
"fieldtype": "A",
"id": "5106871420",
"subdomain": "",
"target": "91.121.64.43",
"ttl": 60,
"zone": "haumdaucher.de"
},
"private": "bnVsbA=="
}
]
},
{
"mode": "managed",
"type": "ovh_domain_zone_record",
"name": "haumdaucher_subdomains",
"each": "map",
"provider": "provider.ovh",
"instances": [
{
"index_key": "corona",
"schema_version": 0,
"attributes": {
"fieldtype": "CNAME",
"id": "5110449971",
"subdomain": "corona",
"target": "haumdaucher.de.",
"target": "91.121.84.190",
"ttl": 60,
"zone": "haumdaucher.de"
},