-
Notifications
You must be signed in to change notification settings - Fork 6
/
dns_hosts.tf
71 lines (61 loc) · 1.58 KB
/
dns_hosts.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
locals {
# canonical host-addres mappings
dns_hosts = {
# legacy GPU
asahi = "147.46.240.213"
bernini = "147.46.240.245"
cojito = "147.46.240.221"
derby = "147.46.240.204"
eggnog = "147.46.240.145"
faust = "147.46.240.144"
# new GPU
ferrari = "147.46.15.75"
"ipmi.ferrari" = "147.46.15.76"
# legacy cluster
glennfidich = "147.46.242.227"
jackdaniels = "147.46.242.203"
rum = "147.46.242.138"
# new cluster
fizz = "147.46.92.150"
gin = "147.46.92.166"
ramos = "147.46.92.170"
# misc physical hosts
blanc = "147.46.242.187"
horoyoi = "147.46.113.120"
joker = "147.46.242.183"
martini = "147.46.240.44"
mimosa = "147.46.240.46"
oloroso = "147.46.241.60"
sherry = "147.46.78.91"
skyy = "147.46.242.84"
# misc virtual hosts
kerkoporta = "147.46.92.174"
# 2024-fall classes
ds01 = "147.46.91.26"
ds02 = "147.46.91.28"
ds03 = "147.46.91.34"
ds04 = "147.46.91.37"
ds05 = "147.46.91.38"
ds06 = "147.46.91.39"
ds07 = "147.46.91.40"
ds08 = "147.46.91.41"
ds09 = "147.46.91.42"
ds10 = "147.46.91.43"
ds11 = "147.46.91.45"
ds12 = "147.46.91.52"
ds13 = "147.46.91.65"
ds14 = "147.46.91.69"
sp01 = "147.46.91.16"
sp02 = "147.46.91.18"
sp03 = "147.46.91.251"
sp04 = "147.46.91.25"
}
}
resource "cloudflare_record" "dns_hosts" {
for_each = local.dns_hosts
zone_id = cloudflare_zone.snucse.id
comment = "managed by Terraform"
name = each.key
type = "A"
content = each.value
}