-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscrumplex_rocks.tf
48 lines (42 loc) · 1.14 KB
/
scrumplex_rocks.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
resource "hetznerdns_zone" "scrumplex_rocks" {
name = "scrumplex.rocks"
ttl = 86400
}
resource "hetznerdns_record" "root4_scrumplex_rocks" {
zone_id = hetznerdns_zone.scrumplex_rocks.id
name = "@"
value = var.universe4
type = "A"
ttl = 3600
}
resource "hetznerdns_record" "root6_scrumplex_rocks" {
zone_id = hetznerdns_zone.scrumplex_rocks.id
name = "@"
value = var.universe6
type = "AAAA"
ttl = 3600
}
resource "hetznerdns_record" "rootcaa_scrumplex_rocks" {
for_each = toset(var.caa_records)
zone_id = hetznerdns_zone.scrumplex_rocks.id
name = "@"
value = each.key
type = "CAA"
}
resource "hetznerdns_record" "cnames_scrumplex_rocks" {
for_each = toset(["x"])
zone_id = hetznerdns_zone.scrumplex_rocks.id
name = each.key
value = "${hetznerdns_zone.scrumplex_rocks.name}."
type = "CNAME"
}
# Verifications
resource "hetznerdns_record" "roottxt_scrumplex_rocks" {
for_each = tomap({
ariadne = "openpgp4fpr:e173237ac782296d98f5adace13dfd4b47127951"
})
zone_id = hetznerdns_zone.scrumplex_rocks.id
name = "@"
value = each.value
type = "TXT"
}