infrastructure/terraform/jakehoward.tech.tf
Jake Howard 3bf44d1d5b
All checks were successful
/ terraform (push) Successful in 38s
/ ansible (push) Successful in 1m36s
Update DNS records
2024-11-25 20:02:36 +00:00

345 lines
8.1 KiB
HCL

resource "gandi_livedns_domain" "jakehowardtech" {
name = "jakehoward.tech"
}
resource "gandi_livedns_record" "jakehowardtech_mx" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "@"
type = "MX"
ttl = 3600
values = [
"10 in1-smtp.messagingengine.com.",
"20 in2-smtp.messagingengine.com.",
]
}
resource "gandi_livedns_record" "jakehowardtech_spf" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "@"
type = "TXT"
ttl = 3600
values = [
"\"v=spf1 include:spf.messagingengine.com -all\""
]
}
resource "gandi_livedns_record" "jakehowardtech_dkim_fm1" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "fm1._domainkey"
type = "CNAME"
ttl = 3600
values = [
"fm1.jakehoward.tech.dkim.fmhosted.com."
]
}
resource "gandi_livedns_record" "jakehowardtech_dkim_fm2" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "fm2._domainkey"
type = "CNAME"
ttl = 3600
values = [
"fm2.jakehoward.tech.dkim.fmhosted.com."
]
}
resource "gandi_livedns_record" "jakehowardtech_dkim_fm3" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "fm3._domainkey"
type = "CNAME"
ttl = 3600
values = [
"fm3.jakehoward.tech.dkim.fmhosted.com."
]
}
resource "gandi_livedns_record" "jakehowardtech_dmarc" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "_dmarc"
type = "TXT"
ttl = 3600
values = [
"\"v=DMARC1; p=quarantine; ruf=mailto:dmarc-report@jakehoward.tech;\""
]
}
resource "gandi_livedns_record" "jakehowardtech_wallabag" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "wallabag"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_ttrss" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "tt-rss"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_speed" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "speed"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_quassel" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "quassel"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_media" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "media"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_matrix" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "matrix"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_intersect" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "intersect"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_calibre" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "calibre"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_homeassistant" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "homeassistant"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve_private.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_grafana" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "grafana"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_vaultwarden" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "vaultwarden"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve_private.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_recipes" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "recipes"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_mailgun_spf" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "mg"
type = "TXT"
ttl = 3600
values = [
"\"v=spf1 include:mailgun.org -all\""
]
}
resource "gandi_livedns_record" "jakehowardtech_mailgun_dkim" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "s1._domainkey.mg"
type = "TXT"
ttl = 3600
values = [
"\"k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4E4cv86U+sFUjgLys26ZLccTghzGfHiFpitWdFg68lGXG63aoG2/+9bgKVT0ZBG7bjPvj6Kyj4N3TIe4oCJo2saVvtsNK1pvZkOadaBPgjzKeRvBaw48ZatUGKoV7q1NCa0kXAfiJleF7bMvbt8rYDmBljr/BG6TtZYPt6XgoZyh8HHXjv/1L6WT3JBVQ8q5UtqVRVujXNHf57FmJTOJpvs0bKn/6TUaXYZmt5z3jpDhc/HfmkzVV22AwRf9jn7kgKkgaKpkvfSL8gtYNn5oyfS0Y9W9x9ntqb4g72RCbynMppQb1uwxbIuWRVOp0un0koQDm3C8ZzhOOYAwe58BYQIDAQAB\""
]
}
resource "gandi_livedns_record" "jakehowardtech_mailgun_dmarc" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "_dmarc.mg"
type = "TXT"
ttl = 3600
values = [
"\"v=DMARC1; p=quarantine; ruf=mailto:dmarc-report@jakehoward.tech;\""
]
}
resource "gandi_livedns_record" "jakehowardtech_synapse_admin" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "synapse-admin"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_apex" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "@"
type = "ALIAS"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_collabora" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "collabora"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_tasks" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "tasks"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_auth" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "auth"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_minio" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "minio"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_s3" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "s3"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_ntfy" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "ntfy"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_headscale" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "headscale"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_casey.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_slides" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "slides"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_uptime" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "uptime"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_baby-buddy" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "baby-buddy"
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve_private.href}."
]
}
resource "gandi_livedns_record" "jakehowardtech_caa" {
zone = gandi_livedns_domain.jakehowardtech.id
name = "@"
type = "CAA"
ttl = 3600
values = [
"0 issue \"letsencrypt.org\"",
"0 wildissue \"letsencrypt.org\"",
]
}