Current state of terraform code
This commit is contained in:
@@ -167,70 +167,3 @@ resource "ovh_domain_zone_record" "wildcard_ameliegraf_de_second" {
|
||||
#target = "91.121.84.190"
|
||||
target = local.second
|
||||
}
|
||||
|
||||
|
||||
######################################
|
||||
|
||||
|
||||
resource "ovh_domain_zone_record" "mail_moritzgraf" {
|
||||
zone = "moritzgraf.de"
|
||||
subdomain = "mail"
|
||||
fieldtype = "A"
|
||||
ttl = local.ttl
|
||||
#target = "91.121.64.43" # old
|
||||
#target = "91.121.84.190" # new
|
||||
target = "136.243.23.215" # hetzner
|
||||
}
|
||||
resource "ovh_domain_zone_record" "moritzgraf" {
|
||||
zone = "moritzgraf.de"
|
||||
fieldtype = "A"
|
||||
ttl = local.ttl
|
||||
#target = "91.121.64.43" # old
|
||||
#target = "91.121.84.190" # new
|
||||
target = "136.243.23.215" # hetzner
|
||||
}
|
||||
|
||||
# resource "ovh_domain_zone_record" "mx_records" {
|
||||
# for_each = toset(var.domains)
|
||||
# zone = each.key
|
||||
# fieldtype = "MX"
|
||||
# ttl = local.ttl
|
||||
# target = "10 mail.moritzgraf.de."
|
||||
# }
|
||||
|
||||
# ## SPF
|
||||
# resource "ovh_domain_zone_record" "spf_record_txt" {
|
||||
# for_each = toset(var.domains)
|
||||
# zone = each.key
|
||||
# fieldtype = "TXT"
|
||||
# ttl = local.ttl
|
||||
# target = "v=spf1 mx a:mail.moritzgraf.de -all"
|
||||
# }
|
||||
# resource "ovh_domain_zone_record" "spf_record_spf" {
|
||||
# for_each = toset(var.domains)
|
||||
# zone = each.key
|
||||
# fieldtype = "SPF"
|
||||
# ttl = 600
|
||||
# target = "\"v=spf1 mx a:mail.moritzgraf.de -all\""
|
||||
# }
|
||||
|
||||
## DKIM
|
||||
resource "ovh_domain_zone_record" "dkim_record" {
|
||||
for_each = toset(var.domains)
|
||||
zone = each.key
|
||||
fieldtype = "TXT"
|
||||
ttl = local.ttl
|
||||
subdomain = "dkim._domainkey"
|
||||
target = "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDhnjYV76s63M4zVRTjVf5Z/fTO6Rq3o4DXg62FCgAxQOYB9ANXeBvUPokT+p5SgjGC8HwBYIzzwCTCS6sqHsy8NfnHU1xFH5NcY4LqTopVX//eYpPF+bTwarDVu/lcCxiX4cN84U1yL8lqf0sOJ7ubGlSeZ/SfM/Ppj7Wkh/kBOQIDAQAB"
|
||||
}
|
||||
|
||||
# ## DMARC
|
||||
resource "ovh_domain_zone_record" "dmarc_record" {
|
||||
for_each = toset(var.domains)
|
||||
zone = each.key
|
||||
fieldtype = "TXT"
|
||||
ttl = local.ttl
|
||||
subdomain = "_dmarc"
|
||||
#target = "v=DMARC1; p=reject; rua=mailto:admin@moritzgraf.de; ruf=mailto:admin@moritzgraf.de; adkim=s; aspf=s"
|
||||
target = "v=DMARC1; p=reject; rua=none; ruf=mailto:admin@moritzgraf.de; adkim=s; aspf=s"
|
||||
}
|
||||
Reference in New Issue
Block a user