-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
419 lines (390 loc) · 11.2 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
terraform {
backend "s3" {
bucket = "terraform-b-nel-family"
key = "state.json"
skip_credentials_validation = true
skip_region_validation = true
skip_requesting_account_id = true
skip_s3_checksum = true
endpoints = {
s3 = "https://s3.us-west-000.backblazeb2.com"
}
region = "us-west-004"
}
required_providers {
porkbun = {
source = "cullenmcdermott/porkbun"
version = "0.2.5"
}
}
}
variable "porkbun_api_key" {
type = string
}
variable "porkbun_secret_key" {
type = string
}
provider "porkbun" {
api_key = var.porkbun_api_key
secret_key = var.porkbun_secret_key
}
resource "porkbun_dns_record" "CAA_nel_family" {
domain = "nel.family"
type = "CAA"
content = "0 issue \"letsencrypt.org;validationmethods=dns-01\""
}
resource "porkbun_dns_record" "CAA_check_nel_family" {
domain = "nel.family"
name = "check"
type = "CAA"
content = "0 issue \"sectigo.com\""
}
resource "porkbun_dns_record" "mx10_nel_family" {
domain = "nel.family"
type = "MX"
content = "aspmx1.migadu.com"
prio = 10
ttl = 3600
}
resource "porkbun_dns_record" "mx20_nel_family" {
domain = "nel.family"
type = "MX"
content = "aspmx2.migadu.com"
prio = 20
ttl = 3600
}
resource "porkbun_dns_record" "nel_family_txt1" {
domain = "nel.family"
type = "TXT"
content = "hosted-email-verify=lpbdsft1"
ttl = 3600
}
resource "porkbun_dns_record" "nel_family_txt2" {
domain = "nel.family"
type = "TXT"
content = "v=spf1 include:spf.migadu.com -all"
ttl = 3600
}
resource "porkbun_dns_record" "_dmarc_nel_family" {
domain = "nel.family"
name = "_dmarc"
type = "TXT"
content = "v=DMARC1; p=quarantine;"
ttl = 3600
}
# h.b 300 A 76.27.3.156
resource "porkbun_dns_record" "h_b_nel_family-A" {
domain = "nel.family"
name = "h.b"
type = "A"
content = "76.27.3.156"
ttl = 600
}
resource "porkbun_dns_record" "nixcache_nel_family-CNAME" {
domain = "nel.family"
name = "nixcache"
type = "CNAME"
content = "h.b.nel.family"
}
# atlas.b A 100.75.145.94
resource "porkbun_dns_record" "atlas_b_nel_family-A" {
domain = "nel.family"
name = "atlas.b"
type = "A"
content = "100.75.145.94"
}
# atlas.b AAAA fd7a:115c:a1e0:ab12:4843:cd96:624b:915e
resource "porkbun_dns_record" "atlas_b_nel_family-AAAA" {
domain = "nel.family"
name = "atlas.b"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:624b:915e"
}
# hypnos.b A 100.69.108.68
resource "porkbun_dns_record" "hypnos_b_nel_family-A" {
domain = "nel.family"
name = "hypnos.b"
type = "A"
content = "100.69.108.68"
}
# hypnos.b AAAA fd7a:115c:a1e0:ab12:4843:cd96:6245:6c44
resource "porkbun_dns_record" "hypnos_b_nel_family-AAAA" {
domain = "nel.family"
name = "hypnos.b"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:6245:6c44"
}
# lima.b A 100.70.81.130
resource "porkbun_dns_record" "lima_b_nel_family-A" {
domain = "nel.family"
name = "lima.b"
type = "A"
content = "100.70.81.130"
}
# lima.b AAAA fd7a:115c:a1e0:ab12:4843:cd96:6246:5182
resource "porkbun_dns_record" "lima_b_nel_family-AAAA" {
domain = "nel.family"
name = "lima.b"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:6246:5182"
}
# poseidon.b A 100.109.254.78
resource "porkbun_dns_record" "poseidon_b_nel_family-A" {
domain = "nel.family"
name = "poseidon.b"
type = "A"
content = "100.109.254.78"
}
# poseidon.b AAAA fd7a:115c:a1e0:ab12:4843:cd96:626d:fe4e
resource "porkbun_dns_record" "poseidon_b_nel_family-AAAA" {
domain = "nel.family"
name = "poseidon.b"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:626d:fe4e"
}
# public.poseidon.b A 74.207.249.82
resource "porkbun_dns_record" "public_poseidon_b_nel_family-A" {
domain = "nel.family"
name = "public.poseidon.b"
type = "A"
content = "74.207.249.82"
}
# public.poseidon.b AAAA 2600:3c01::f03c:92ff:fe36:3ed9
resource "porkbun_dns_record" "public_poseidon_b_nel_family-AAAA" {
domain = "nel.family"
name = "public.poseidon.b"
type = "AAAA"
content = "2600:3c01::f03c:92ff:fe36:3ed9"
}
# whiskey.b A 100.89.15.100
resource "porkbun_dns_record" "whiskey_b_nel_family-A" {
domain = "nel.family"
name = "whiskey.b"
type = "A"
content = "100.89.15.100"
}
# whiskey.b AAAA fd7a:115c:a1e0::ad01:f64
resource "porkbun_dns_record" "whiskey_b_nel_family-AAAA" {
domain = "nel.family"
name = "whiskey.b"
type = "AAAA"
content = "fd7a:115c:a1e0::ad01:f64"
}
# public.whiskey.b A 15.204.59.201
resource "porkbun_dns_record" "public_whiskey_b_nel_family-A" {
domain = "nel.family"
name = "public.whiskey.b"
type = "A"
content = "15.204.59.201"
}
# public.whiskey.b AAAA 2604:2dc0:202:300::b6a
resource "porkbun_dns_record" "public_whiskey_b_nel_family-AAAA" {
domain = "nel.family"
name = "public.whiskey.b"
type = "AAAA"
content = "2604:2dc0:202:300::b6a"
}
# romeo.b A 100.76.49.168
resource "porkbun_dns_record" "romeo_b_nel_family-A" {
domain = "nel.family"
name = "romeo.b"
type = "A"
content = "100.76.49.168"
}
# romeo.b AAAA fd7a:115c:a1e0:ab12:4843:cd96:624c:31a8
resource "porkbun_dns_record" "romeo_b_nel_family-AAAA" {
domain = "nel.family"
name = "romeo.b"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:624c:31a8"
}
resource "porkbun_dns_record" "homeassistant_b_nel_family-A" {
domain = "nel.family"
name = "homeassistant.b"
type = "A"
content = "100.66.76.95"
}
resource "porkbun_dns_record" "homeassistant_b_nel_family-AAAA" {
domain = "nel.family"
name = "homeassistant.b"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:6242:4c5f"
}
# ryuu.llp A 100.90.206.28
resource "porkbun_dns_record" "ryuu_llp_nel_family-A" {
domain = "nel.family"
name = "ryuu.llp"
type = "A"
content = "100.90.206.28"
}
# ryuu.llp AAAA fd7a:115c:a1e0:ab12:4843:cd96:625a:ce1c
resource "porkbun_dns_record" "ryuu_llp_nel_family-AAAA" {
domain = "nel.family"
name = "ryuu.llp"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:625a:ce1c"
}
# vor.ck A 100.73.83.164
resource "porkbun_dns_record" "vor_ck_nel_family-A" {
domain = "nel.family"
name = "vor.ck"
type = "A"
content = "100.73.83.164"
}
# vor.ck AAAA fd7a:115c:a1e0:ab12:4843:cd96:6249:53a4
resource "porkbun_dns_record" "vor_ck_nel_family-AAAA" {
domain = "nel.family"
name = "vor.ck"
type = "AAAA"
content = "fd7a:115c:a1e0:ab12:4843:cd96:6249:53a4"
}
# *.h.b CNAME h.b.nel.family.
resource "porkbun_dns_record" "wildcard_h_b_nel_family-CNAME" {
domain = "nel.family"
name = "*.h.b"
type = "CNAME"
content = "h.b.nel.family"
}
# *.poseidon.b CNAME public.poseidon.b.nel.family.
resource "porkbun_dns_record" "wildcard_poseidon_b_nel_family-CNAME" {
domain = "nel.family"
name = "*.poseidon.b"
type = "CNAME"
content = "public.poseidon.b.nel.family"
}
# *.romeo.b CNAME romeo.b.nel.family.
resource "porkbun_dns_record" "wildcard_romeo_b_nel_family-CNAME" {
domain = "nel.family"
name = "*.romeo.b"
type = "CNAME"
content = "romeo.b.nel.family"
}
# audiobooks CNAME audiobooks.h.b.nel.family.
resource "porkbun_dns_record" "audiobooks_nel_family-CNAME" {
domain = "nel.family"
name = "audiobooks"
type = "CNAME"
content = "audiobooks.h.b.nel.family"
}
# auth CNAME h.b.nel.family.
resource "porkbun_dns_record" "auth_h_b_nel_family-CNAME" {
domain = "nel.family"
name = "auth.h.b"
type = "CNAME"
content = "h.b.nel.family"
}
# check CNAME esoteric-rattlesnake.pikapod.net.
resource "porkbun_dns_record" "check_nel_family-CNAME" {
domain = "nel.family"
name = "check"
type = "CNAME"
content = "esoteric-rattlesnake.pikapod.net"
}
# docs CNAME h.b.nel.family.
resource "porkbun_dns_record" "docs_h_b_nel_family-CNAME" {
domain = "nel.family"
name = "docs.h.b"
type = "CNAME"
content = "h.b.nel.family"
}
# health.b CNAME public.poseidon.b.nel.family.
resource "porkbun_dns_record" "health_b_nel_family-CNAME" {
domain = "nel.family"
name = "health.b"
type = "CNAME"
content = "public.whiskey.b.nel.family"
}
# key1._domainkey CNAME key1.nel.family._domainkey.migadu.com.
resource "porkbun_dns_record" "key1__domainkey_nel_family-CNAME" {
domain = "nel.family"
name = "key1._domainkey"
type = "CNAME"
content = "key1.nel.family._domainkey.migadu.com"
}
# key2._domainkey CNAME key2.nel.family._domainkey.migadu.com.
resource "porkbun_dns_record" "key2__domainkey_nel_family-CNAME" {
domain = "nel.family"
name = "key2._domainkey"
type = "CNAME"
content = "key2.nel.family._domainkey.migadu.com"
}
# key3._domainkey CNAME key3.nel.family._domainkey.migadu.com.
resource "porkbun_dns_record" "key3__domainkey_nel_family-CNAME" {
domain = "nel.family"
name = "key3._domainkey"
type = "CNAME"
content = "key3.nel.family._domainkey.migadu.com"
}
# media CNAME media.h.b.nel.family.
resource "porkbun_dns_record" "media_nel_family-CNAME" {
domain = "nel.family"
name = "media"
type = "CNAME"
content = "media.h.b.nel.family"
}
# recipes CNAME recipes.h.b.nel.family.
resource "porkbun_dns_record" "recipes_h_b_nel_family-CNAME" {
domain = "nel.family"
name = "recipes"
type = "CNAME"
content = "recipes.h.b.nel.family"
}
# todo CNAME h.b.nel.family.
resource "porkbun_dns_record" "todo_h_b_nel_family-CNAME" {
domain = "nel.family"
name = "todo"
type = "CNAME"
content = "h.b.nel.family"
}
# vault CNAME public.poseidon.b.nel.family.
resource "porkbun_dns_record" "vault_nel_family-CNAME" {
domain = "nel.family"
name = "vault"
type = "CNAME"
content = "public.whiskey.b.nel.family"
}
resource "porkbun_dns_record" "grafana_b_nel_family-CNAME" {
domain = "nel.family"
name = "grafana.b"
type = "CNAME"
content = "public.whiskey.b.nel.family"
}
resource "porkbun_dns_record" "nel_to-CAA" {
domain = "nel.to"
type = "CAA"
content = "0 issue \"letsencrypt.org;validationmethods=dns-01\""
}
resource "porkbun_dns_record" "nel_to-CNAME" {
domain = "nel.to"
type = "CNAME"
content = "h.b.nel.family"
}
resource "porkbun_dns_record" "bcnelson_dev-CAA" {
domain = "bcnelson.dev"
type = "CAA"
content = "0 issue \"letsencrypt.org;validationmethods=dns-01\""
}
resource "porkbun_dns_record" "git_bcnelson_dev-CNAME" {
domain = "bcnelson.dev"
type = "CNAME"
name = "git"
content = "public.whiskey.b.nel.family"
}
resource "porkbun_dns_record" "idm_nel_family-CNAME" {
domain = "nel.family"
type = "CNAME"
name = "idm"
content = "public.whiskey.b.nel.family"
}
resource "porkbun_dns_record" "bcnelson_dev-github-verify" {
domain = "bcnelson.dev"
type = "TXT"
name = "_github-pages-challenge-bcnelson"
content = "e8a64353bcac28974a44be20b4b899"
}
resource "porkbun_dns_record" "nel_family-github-verify" {
domain = "nel.family"
type = "TXT"
name = "_github-pages-challenge-bcnelson"
content = "fd1501e619123965c3b215277162ad"
}