mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Added all ns records for 2martens.de and 2martens.eu and distributed to files
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
resource "inwx_nameserver_record" "a" {
|
||||
domain = var.domain
|
||||
name = var.subdomain
|
||||
content = var.ipv4
|
||||
type = "A"
|
||||
ttl = 3600
|
||||
}
|
||||
resource "inwx_nameserver_record" "aaaa" {
|
||||
domain = var.domain
|
||||
name = var.subdomain
|
||||
content = var.ipv6
|
||||
type = "AAAA"
|
||||
ttl = 3600
|
||||
}
|
||||
resource "inwx_nameserver_record" "mx" {
|
||||
domain = var.domain
|
||||
name = var.subdomain
|
||||
content = var.hostName
|
||||
type = "MX"
|
||||
prio = var.mxPrio
|
||||
ttl = 3600
|
||||
count = var.hasMXRecord ? 1 : 0
|
||||
}
|
||||
resource "inwx_nameserver_record" "mx-spf" {
|
||||
domain = var.domain
|
||||
name = var.subdomain
|
||||
content = var.mxSpf
|
||||
type = "TXT"
|
||||
ttl = 3600
|
||||
count = var.hasMXRecord ? 1 : 0
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
variable "ipv4" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ipv6" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "domain" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "subdomain" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "hasMXRecord" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "hostName" {
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "mxPrio" {
|
||||
type = number
|
||||
default = 0
|
||||
}
|
||||
|
||||
variable "mxSpf" {
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
Reference in New Issue
Block a user