Current state of terraform code

This commit is contained in:
Moritz Graf 2025-05-29 11:37:24 +02:00
parent ee5b34bea9
commit 0aac20e672
6 changed files with 10 additions and 75 deletions

View File

@ -131,7 +131,7 @@ resource "ovh_domain_zone_record" "google_domain_verification_graf_fam_de" {
zone = "graf-fam.de" zone = "graf-fam.de"
fieldtype = "TXT" fieldtype = "TXT"
ttl = 60 ttl = 60
target = "google-site-verification=xxxxxxx" target = "google-site-verification=DcG0tKp5YXxCRvw_Ekxa-3gbzdkZvxXUVkPs8aq9yQ4"
} }
resource "ovh_domain_zone_record" "spf_graf_fam_de" { resource "ovh_domain_zone_record" "spf_graf_fam_de" {
@ -155,7 +155,7 @@ resource "ovh_domain_zone_record" "dkim_google_graf_fam_de" {
subdomain = "google._domainkey" # The DNS Host name provided by Google subdomain = "google._domainkey" # The DNS Host name provided by Google
fieldtype = "TXT" fieldtype = "TXT"
ttl = 3600 # 1 hour TTL ttl = 3600 # 1 hour TTL
target = "v=DKIM1; k=rsa; p=xxxxx" target = "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqT7j2pdU/dKDp7392+67cqI54QSwQsYrbdJa0aOH94m5gcXa3B2CZvuN2iKt6mO2mUtzWUbwKcNVL0p9yVW6nHpCMNefUS3NfZ8KQfl+lVsaYZXzYZwuTy2ZMvaBZpftIQjclfChFrOtMvBOTpdu8SBJT8hXnqkOYvtuHPBG+qDsFvsV+N4jjHtYbMPMnD2w7GeYciFWzp3bM9FbYIgdzyD+jzIYkaJlph4cMJBMoOredJhK+T2F95uvsvUk43QNU6KujLTFL6F/wNM/zSmH+5hYBAgAMG3QAguhicATJHV6bxd2oM1aLWNjZt90xBkTmMMzvtLjcGGpkgNuxa35WwIDAQAB"
} }
@ -173,7 +173,7 @@ resource "ovh_domain_zone_record" "google_domain_verification_krassescheisse_de"
zone = "krassescheisse.de" zone = "krassescheisse.de"
fieldtype = "TXT" fieldtype = "TXT"
ttl = 60 ttl = 60
target = "google-site-verification=xxxxxxx" target = "google-site-verification=SHFDcMegmOoh9syhj7_xBH9dLQxA2NMnh_zvg4Ma0CM"
} }
resource "ovh_domain_zone_record" "spf_krassescheisse_de" { resource "ovh_domain_zone_record" "spf_krassescheisse_de" {
@ -197,7 +197,7 @@ resource "ovh_domain_zone_record" "dkim_google_krassescheisse_de" {
subdomain = "google._domainkey" # The DNS Host name provided by Google subdomain = "google._domainkey" # The DNS Host name provided by Google
fieldtype = "TXT" fieldtype = "TXT"
ttl = 3600 # 1 hour TTL ttl = 3600 # 1 hour TTL
target = "v=DKIM1; k=rsa; p=xxxxx" target = "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp9dLGkWdBZ0YyjBdRVTf26Fo+lVag1dfHHpO4N+oFLg0xV1gRJFcSGjteHUoKbrJxgesAwSmBYsaWAZB0RCI4wbAZKgb++6NX2Tk5gxkKys9pmc3ufGhCsjQkiiNepUkgalJRU7WAsWWolHXqn69D2DkXx9fPekdwaDeJwdtozoGacdbj46Ef1btGo48CJKk5rjh39c7BDNMmYEXXMztBIK2K80Y5WrLJZFxkvEKBrEB4pVoPDa3xEYcR0olLdDwB2SOEX6HSQ2xXkNB3KxbyIiHJTSJsNxquozTzfiWoqly/AdQLCU9j3jtqP88ne61NciQcxGdvOcQ0yUtFoydOwIDAQAB"
} }
### grabengasse7.de ### grabengasse7.de
@ -214,7 +214,7 @@ resource "ovh_domain_zone_record" "google_domain_verification_grabengasse7_de" {
zone = "grabengasse7.de" zone = "grabengasse7.de"
fieldtype = "TXT" fieldtype = "TXT"
ttl = 60 ttl = 60
target = "google-site-verification=xxxxxxx" target = "google-site-verification=zwmmYhET0gyCJr_An22btaOVcpsE_nR2b1St0y4jn1A"
} }
resource "ovh_domain_zone_record" "spf_grabengasse7_de" { resource "ovh_domain_zone_record" "spf_grabengasse7_de" {
@ -238,5 +238,5 @@ resource "ovh_domain_zone_record" "dkim_google_grabengasse7_de" {
subdomain = "google._domainkey" # The DNS Host name provided by Google subdomain = "google._domainkey" # The DNS Host name provided by Google
fieldtype = "TXT" fieldtype = "TXT"
ttl = 3600 # 1 hour TTL ttl = 3600 # 1 hour TTL
target = "v=DKIM1; k=rsa; p=xxxxx" target = "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxR/e/Bc6/6Rfhos0ZQoVsq4HV8wkOdnOgkyubzvnepRDm/ARCws/CTvg9azJGFafsOsft1JZRAypj8mMovnDBjnW3mclVCyHQO34VLm13Et8ySX3GeJwwJQKx52PHsCQT1eEeEF3IjckS9wDiCkgdty9NEqpdF76N62nj6j8WY0czNxrYT0ivyiKQ6reB/mOeTiqPHiSHuB3ANxebwy5/wLilHSH320T9C+TDqcZ/Q6VTrUFpXIMjccEg93ZPaIu++FMTWZAe1pX6IWMuBXt5xRLLTamTzDUIOfwhvMxVee+d9mqwvIOc6J6ZiBhhCZpSVjiVLI5NcfNICQU4kjakwIDAQAB"
} }

View File

@ -167,70 +167,3 @@ resource "ovh_domain_zone_record" "wildcard_ameliegraf_de_second" {
#target = "91.121.84.190" #target = "91.121.84.190"
target = local.second 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"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long