fix: Use correct NS for test

change: Remove 2martens.eu from domain test
change: Use 2martens.example for domain test
This commit is contained in:
2024-09-04 09:02:48 +02:00
parent b9ee24b516
commit 6ef68f47fa
2 changed files with 7 additions and 92 deletions
+6 -91
View File
@@ -19,18 +19,16 @@ resource "inwx_nameserver" "twomartens_de_nameserver" {
domain = local.domain
type = "MASTER"
nameservers = [
"ns.inwx.de",
"ns2.inwx.de",
"ns3.inwx.eu"
"ns.ote.inwx.de",
"ns2.ote.inwx.de"
]
}
resource "inwx_domain" "twomartens_de" {
name = local.domain
nameservers = [
"ns.inwx.de",
"ns2.inwx.de",
"ns3.inwx.eu"
"ns.ote.inwx.de",
"ns2.ote.inwx.de"
]
period = local.domain_period
renewal_mode = local.domain_renewal
@@ -44,43 +42,11 @@ resource "inwx_domain" "twomartens_de" {
}
}
resource "inwx_nameserver" "twomartens_eu_nameserver" {
domain = "2martens.eu"
type = "MASTER"
nameservers = [
"ns.inwx.de",
"ns2.inwx.de",
"ns3.inwx.eu"
]
}
resource "inwx_domain" "twomartens_eu" {
name = "2martens.eu"
nameservers = [
"ns.inwx.de",
"ns2.inwx.de",
"ns3.inwx.eu"
]
period = local.domain_period
renewal_mode = local.domain_renewal
transfer_lock = true
contacts {
// references to terraform managed contact "example_person"
registrant = inwx_domain_contact.admin.id
admin = inwx_domain_contact.admin.id
tech = 1
billing = 1
}
extra_data = {
"EU-COUNTRY-OF-CITIZENSHIP" : "DE"
}
}
// NS records
resource "inwx_nameserver_record" "twomartens_de_ns1" {
domain = local.domain
name = local.domain
content = "ns.inwx.de"
content = "ns.ote.inwx.de"
type = "NS"
ttl = 86400
}
@@ -88,42 +54,11 @@ resource "inwx_nameserver_record" "twomartens_de_ns1" {
resource "inwx_nameserver_record" "twomartens_de_ns2" {
domain = local.domain
name = local.domain
content = "ns2.inwx.de"
content = "ns2.ote.inwx.de"
type = "NS"
ttl = 86400
}
resource "inwx_nameserver_record" "twomartens_de_ns3" {
domain = local.domain
name = local.domain
content = "ns3.inwx.eu"
type = "NS"
ttl = 86400
}
resource "inwx_nameserver_record" "twomartens_eu_ns1" {
domain = "2martens.eu"
name = "2martens.eu"
content = "ns.inwx.de"
type = "NS"
ttl = 86400
}
resource "inwx_nameserver_record" "twomartens_eu_ns2" {
domain = "2martens.eu"
name = "2martens.eu"
content = "ns2.inwx.de"
type = "NS"
ttl = 86400
}
resource "inwx_nameserver_record" "twomartens_eu_ns3" {
domain = "2martens.eu"
name = "2martens.eu"
content = "ns3.inwx.eu"
type = "NS"
ttl = 86400
}
// SOAs
@@ -150,23 +85,3 @@ resource "inwx_nameserver_record" "twomartens_eu_ns3" {
# ignore_changes = [content]
# }
# }
// redirect 2martens.eu to 2martens.de
resource "inwx_nameserver_record" "twomartens_eu_root_redirect" {
domain = "2martens.eu"
name = "2martens.eu"
content = "https://2martens.de"
type = "URL"
url_redirect_type = "HEADER301"
prio = 301
ttl = 3600
}
resource "inwx_nameserver_record" "twomartens_eu_www_redirect" {
domain = "2martens.eu"
name = "www.2martens.eu"
content = "https://2martens.de"
type = "URL"
url_redirect_type = "HEADER301"
prio = 301
ttl = 3600
}
+1 -1
View File
@@ -1,3 +1,3 @@
locals {
domain = "2martens.de"
domain = "2martens.example"
}