-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tf
55 lines (53 loc) · 1.5 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# --- MX Records
resource "linode_domain_record" "migadu-mx-1" {
domain_id = var.domain_id
record_type = "MX"
name = ""
priority = "10"
target = "aspmx1.migadu.com"
}
resource "linode_domain_record" "migadu-mx-2" {
domain_id = var.domain_id
record_type = "MX"
name = ""
priority = "20"
target = "aspmx2.migadu.com"
}
# --- CNAME Records
resource "linode_domain_record" "migadu-cname-1" {
domain_id = var.domain_id
record_type = "CNAME"
name = "key1._domainkey"
target = "key1.${var.domain}._domainkey.migadu.com"
}
resource "linode_domain_record" "migadu-cname-2" {
domain_id = var.domain_id
record_type = "CNAME"
name = "key2._domainkey"
target = "key2.${var.domain}._domainkey.migadu.com"
}
resource "linode_domain_record" "migadu-cname-3" {
domain_id = var.domain_id
record_type = "CNAME"
name = "key3._domainkey"
target = "key3.${var.domain}._domainkey.migadu.com"
}
# --- TXT Records
resource "linode_domain_record" "migadu-txt-1" {
domain_id = var.domain_id
record_type = "TXT"
name = ""
target = "hosted-email-verify=${var.verification_code}"
}
resource "linode_domain_record" "migadu-txt-2" {
domain_id = var.domain_id
record_type = "TXT"
name = ""
target = "v=spf1 include:spf.migadu.com -all"
}
resource "linode_domain_record" "migadu-txt-3" {
domain_id = var.domain_id
record_type = "TXT"
name = "_dmarc"
target = "v=DMARC1; p=quarantine;"
}