infrastructure/terraform/theorangeone.net.tf
Jake Howard b7aebfaabd
Move statping to new machine
Also update it to the latest version. It's probably still buggy AF, but it'll do for what I need it to rigth now.
2020-07-14 19:35:55 +01:00

158 lines
3.8 KiB
HCL

resource "cloudflare_zone" "theorangeonenet" {
zone = "theorangeone.net"
}
resource "cloudflare_record" "theorangeonenet_git" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "git"
value = vultr_server.casey.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_stats" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "stats"
value = var.walker_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_whoami" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "whoami"
value = vultr_server.casey.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_mx1" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "@"
value = "in1-smtp.messagingengine.com"
type = "MX"
priority = 10
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_mx2" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "@"
value = "in2-smtp.messagingengine.com"
type = "MX"
priority = 20
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_txt" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "@"
value = "v=spf1 include:spf.messagingengine.com ?all"
type = "TXT"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_dkim_fm1" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "fm1._domainkey"
value = "fm1.theorangeone.net.dkim.fmhosted.com"
type = "CNAME"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_dkim_fm2" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "fm2._domainkey"
value = "fm2.theorangeone.net.dkim.fmhosted.com"
type = "CNAME"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_dkim_fm3" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "fm3._domainkey"
value = "fm3.theorangeone.net.dkim.fmhosted.com"
type = "CNAME"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_www" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "www"
value = vultr_server.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_apex" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "@"
value = vultr_server.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_snippets" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "snippets"
value = "too-snippets.netlify.com"
type = "CNAME"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_srv_matrix" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "_matrix._tcp"
type = "SRV"
ttl = 1
data = {
service = "_matrix"
proto = "_tcp"
name = "theorangeone.net"
priority = 10
weight = 0
port = 8448
target = cloudflare_record.jakehowardtech_matrix.hostname
}
}
resource "cloudflare_record" "theorangeonenet_img" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "img"
value = vultr_server.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_dl" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "dl"
value = vultr_server.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_bg" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "bg"
value = vultr_server.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_upload" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "upload"
value = vultr_server.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_rng" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "rng"
value = vultr_server.casey.main_ip
type = "A"
ttl = 1
}