migrate rpqt.fr domain to OVH
This commit is contained in:
parent
964b9b5b4e
commit
2b2b5d30c7
2 changed files with 49 additions and 40 deletions
58
infra/dns.tf
58
infra/dns.tf
|
|
@ -1,47 +1,17 @@
|
|||
data "gandi_livedns_domain" "rpqt_fr" {
|
||||
name = "rpqt.fr"
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "rpqt_fr_radicle_a" {
|
||||
zone = data.gandi_livedns_domain.rpqt_fr.id
|
||||
name = "radicle"
|
||||
type = "A"
|
||||
ttl = 10800
|
||||
values = [
|
||||
hcloud_server.crocus_server.ipv4_address,
|
||||
]
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "rpqt_fr_radicle_aaaa" {
|
||||
zone = data.gandi_livedns_domain.rpqt_fr.id
|
||||
name = "radicle"
|
||||
type = "AAAA"
|
||||
ttl = 10800
|
||||
values = [
|
||||
hcloud_server.crocus_server.ipv6_address,
|
||||
]
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "rpqt_fr_cloud_a" {
|
||||
zone = data.gandi_livedns_domain.rpqt_fr.id
|
||||
name = "cloud"
|
||||
type = "A"
|
||||
ttl = 10800
|
||||
values = local.verbena_ipv4_addresses
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "rpqt_fr_cloud_aaaa" {
|
||||
zone = data.gandi_livedns_domain.rpqt_fr.id
|
||||
name = "cloud"
|
||||
type = "AAAA"
|
||||
ttl = 10800
|
||||
values = local.verbena_ipv6_addresses
|
||||
}
|
||||
|
||||
data "ovh_vps" "verbena_vps" {
|
||||
service_name = "vps-7e78bac2.vps.ovh.net"
|
||||
}
|
||||
|
||||
data "ovh_domain_zone" "rpqt_fr" {
|
||||
name = "rpqt.fr"
|
||||
}
|
||||
|
||||
resource "ovh_domain_zone_import" "rpqt_fr_import" {
|
||||
zone_name = "rpqt.fr"
|
||||
zone_file = local.rpqt_fr_zone_file
|
||||
}
|
||||
|
||||
|
||||
data "ovh_domain_zone" "turifer_dev" {
|
||||
name = "turifer.dev"
|
||||
}
|
||||
|
|
@ -62,5 +32,13 @@ locals {
|
|||
verbena_ipv4_addresses = local.verbena_ipv4_addresses
|
||||
verbena_ipv6_addresses = local.verbena_ipv6_addresses
|
||||
})
|
||||
|
||||
rpqt_fr_zone_file = templatefile("./templates/turifer.dev.zone", {
|
||||
crocus_ipv4_address = hcloud_server.crocus_server.ipv4_address
|
||||
crocus_ipv6_address = hcloud_server.crocus_server.ipv6_address
|
||||
|
||||
verbena_ipv4_addresses = local.verbena_ipv4_addresses
|
||||
verbena_ipv6_addresses = local.verbena_ipv6_addresses
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
31
infra/templates/rpqt.fr.zone
Normal file
31
infra/templates/rpqt.fr.zone
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
$TTL 3600
|
||||
@ IN SOA dns100.ovh.net. tech.ovh.net. (2026010123 86400 3600 3600000 60)
|
||||
IN NS dns100.ovh.net.
|
||||
IN NS ns100.ovh.net.
|
||||
|
||||
rpqt.fr. 3000 IN TXT "hosted-email-verify=pgeaq3bp"
|
||||
rpqt.fr. 3000 IN MX 10 aspmx1.migadu.com.
|
||||
rpqt.fr. 3000 IN MX 20 aspmx2.migadu.com.
|
||||
rpqt.fr. 3000 IN TXT "v=spf1 include:spf.migadu.com -all"
|
||||
key1._domainkey.rpqt.fr. 3000 IN CNAME key1.rpqt.fr._domainkey.migadu.com.
|
||||
key2._domainkey.rpqt.fr. 3000 IN CNAME key2.rpqt.fr._domainkey.migadu.com.
|
||||
key3._domainkey.rpqt.fr. 3000 IN CNAME key3.rpqt.fr._domainkey.migadu.com.
|
||||
_dmarc.rpqt.fr. 3000 IN TXT "v=DMARC1; p=quarantine;"
|
||||
autoconfig.rpqt.fr. 3000 IN CNAME autoconfig.migadu.com.
|
||||
_autodiscover._tcp.rpqt.fr. 3000 IN SRV 0 1 443 autodiscover.migadu.com.
|
||||
_submissions._tcp.rpqt.fr. 3000 IN SRV 0 1 465 smtp.migadu.com.
|
||||
_imaps._tcp.rpqt.fr. 3000 IN SRV 0 1 993 imap.migadu.com.
|
||||
_pop3s._tcp.rpqt.fr. 3000 IN SRV 0 1 995 pop.migadu.com.
|
||||
|
||||
@ 10800 IN A 46.23.81.157
|
||||
@ 10800 IN AAAA 2a03:6000:1813:1337::157
|
||||
|
||||
%{ for addr in verbena_ipv4_addresses ~}
|
||||
cloud 10800 IN A ${addr}
|
||||
%{ endfor ~}
|
||||
%{ for addr in verbena_ipv6_addresses ~}
|
||||
cloud 10800 IN AAAA ${addr}
|
||||
%{ endfor ~}
|
||||
|
||||
radicle 10800 IN A ${crocus_ipv4_address}
|
||||
radicle 10800 IN AAAA ${crocus_ipv6_address}
|
||||
Loading…
Add table
Add a link
Reference in a new issue