archlinux.tf 32.8 KB
Newer Older
1
terraform {
2
  backend "pg" {
3
    schema_name = "terraform_remote_state_stage1"
4
  }
5
6
}

7
8
9
10
11
12
13
data "external" "vault_hetzner" {
  program = [
    "${path.module}/../misc/get_key.py", "misc/vault_hetzner.yml",
    "hetzner_cloud_api_key",
    "hetzner_dns_api_key",
    "--format", "json"
  ]
14
}
15

16
17
data "hcloud_image" "archlinux" {
  with_selector = "custom_image=archlinux"
18
19
  most_recent   = true
  with_status   = ["available"]
20
21
22
}

provider "hcloud" {
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
  token = data.external.vault_hetzner.result.hetzner_cloud_api_key
}

provider "hetznerdns" {
  apitoken = data.external.vault_hetzner.result.hetzner_dns_api_key
}

resource "hetznerdns_zone" "archlinux" {
  name = "archlinux.org"
  ttl = 86400
}

resource "hetznerdns_zone" "pkgbuild" {
  name = "pkgbuild.com"
  ttl = 86400
}

resource "hetznerdns_record" "pkgbuild_com_origin_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "78.46.178.133"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_origin_aaaa" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "2a01:4f8:c2c:51e2::1"
  type = "AAAA"
}

resource "hetznerdns_record" "pkgbuild_com_origin_caa" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "0 issue \"letsencrypt.org\""
  type = "CAA"
}

resource "hetznerdns_record" "pkgbuild_com_origin_mx" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "0 ."
  type = "MX"
}

resource "hetznerdns_record" "pkgbuild_com_origin_ns3" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "robotns3.second-ns.com."
  type = "NS"
}

resource "hetznerdns_record" "pkgbuild_com_origin_ns2" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "robotns2.second-ns.de."
  type = "NS"
}

resource "hetznerdns_record" "pkgbuild_com_origin_ns1" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "ns1.first-ns.de."
  type = "NS"
}

89
90
91
92
93
94
95
96
97
# TODO: Commented currently as we have no idea how to handle SOA stuff with Terraform:
# https://github.com/timohirt/terraform-provider-hetznerdns/issues/20
# https://gitlab.archlinux.org/archlinux/infrastructure/-/merge_requests/62#note_4040
# resource "hetznerdns_record" "pkgbuild_com_origin_soa" {
#   zone_id = hetznerdns_zone.pkgbuild.id
#   name = "@"
#   value = "ns1.first-ns.de. dns.hetzner.com. 2020090604 14400 1800 604800 86400"
#   type = "SOA"
# }
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

resource "hetznerdns_record" "pkgbuild_com_origin_txt" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "@"
  value = "\"v=spf1 -all\""
  type = "TXT"
}

resource "hetznerdns_record" "pkgbuild_com_wildcard_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "*"
  value = "78.46.178.133"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_wildcard_aaaa" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "*"
  value = "2a01:4f8:c2c:51e2::1"
  type = "AAAA"
}

resource "hetznerdns_record" "pkgbuild_com_archive_ger_mirror_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "archive.ger.mirror"
  value = "159.122.70.8"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_ger_mirror_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "ger.mirror"
  value = "159.122.70.8"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_mirror_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "mirror"
  value = "78.46.209.220"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_mirror_aaaa" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "mirror"
  value = "2a01:4f8:c2c:c62f::1"
  type = "AAAA"
}

resource "hetznerdns_record" "pkgbuild_com_repro1_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "repro1"
  value = "169.50.62.117"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_repro3_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "repro3"
  value = "147.75.81.79"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_repro3_aaaa" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "repro3"
  value = "2604:1380:2001:4500::1"
  type = "AAAA"
}

resource "hetznerdns_record" "pkgbuild_com_www_a" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "www"
  value = "78.46.178.133"
  type = "A"
}

resource "hetznerdns_record" "pkgbuild_com_www_aaaa" {
  zone_id = hetznerdns_zone.pkgbuild.id
  name = "www"
  value = "2a01:4f8:c2c:51e2::1"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_origin_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "138.201.81.199"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_origin_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "2a01:4f8:172:1d86::1"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_origin_caa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "0 issue \"letsencrypt.org\""
  type = "CAA"
}

resource "hetznerdns_record" "archlinux_org_origin_mx" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "10 mx"
  type = "MX"
}

resource "hetznerdns_record" "archlinux_org_origin_ns3" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "robotns3.second-ns.com."
  type = "NS"
}

resource "hetznerdns_record" "archlinux_org_origin_ns2" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "robotns2.second-ns.de."
  type = "NS"
}

resource "hetznerdns_record" "archlinux_org_origin_ns1" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "ns1.first-ns.de."
  type = "NS"
}

232
233
234
235
236
237
238
239
240
# TODO: Commented currently as we have no idea how to handle SOA stuff with Terraform:
# https://github.com/timohirt/terraform-provider-hetznerdns/issues/20
# https://gitlab.archlinux.org/archlinux/infrastructure/-/merge_requests/62#note_4040
#; resource "hetznerdns_record" "archlinux_org_origin_soa" {
#   zone_id = hetznerdns_zone.archlinux.id
#   name = "@"
#   value = "ns1.first-ns.de. ibiru.archlinux.org. 2020072502 7200 900 1209600 86400"
#   type = "SOA"
# }
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258

resource "hetznerdns_record" "archlinux_org_origin_txt" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "@"
  value = "\"v=spf1 mx ip4:66.211.214.132/28 ip4:5.9.250.164 ip6:2a01:4f8:160:3033::2 ip4:138.201.81.199/32 ip4:88.198.91.70/32 a:aur.archlinux.org a:apollo.archlinux.org ?all\""
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_origin_apollo_domainkey_txt" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "apollo._domainkey"
  value = "\"v=DKIM1; k=rsa; s=email; \" \"p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvZIf8SbjC53RDCbMjTEpo0FCuMSShlKWdwWjY1J+RpT3CL/21z4nXqVBYF1orkUScH8Nlabocraqk8lmpNBlKCUV77lk9mRsLkWhg+XjhvQXL1xfH8zAg1CntEZuaIMLUQ+5Gkw6BlO1qDRkmXS9UtV8Jt1rhjRtSrgN5lhztOCbQLRAtzKty/nMeClqsfT3nL2hbDeh+b/rYc\" \"l2veZAqiGcR2/0bnKlt+Nb5lOBY3oZiYLmZ5g+l9UXVjGUq9jGAooIWpQvuRPmin3RX31kXfr1A+mDBEexiOL1dDST2Zx7i9puXbqYH0u0IxBpweHCO5UqWx52mdXBuhs+DCo/JoZAHU/6eRzK+Sps50LgLFSzJJNfGXk5PUKdww2GHbkK3mCYfoFCpB0SADzl42+1w6YZk1yXoPdOHtChfQpCgjtddf1W8Q09pYO1/bn4l0erdFQsWb1K\" \"4wEVOCn+hHWbV42V+J3TyGxQ4AM8KQ1OPvUEabyTyqcO4evBaH7/S2wA91Z9QDjTbKmlNovs5zoxuOM/mPGPUuQMvhjoAP+rg4AwJ3Xwd3GgUcqQflcokayUYdp7F3aKp1NWAR9ibseU/XBYsSF8Ucjqzf4DJFUfrgjHUr97st7g4HUCyXrQO4tyE0ytiX8OFjjIszWLmF+B7Vup9O7k+dNz2Vj2Vyzkq1UCAwEAAQ==\""
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_accounts_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "accounts"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
259
  value = hcloud_server.accounts.ipv4_address
260
261
262
263
264
265
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_accounts_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "accounts"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
266
  value = hcloud_server.accounts.ipv6_address
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
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_apollo_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "apollo"
  value = "138.201.81.199"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_apollo_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "apollo"
  value = "2a01:4f8:172:1d86::1"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_archive_gemini_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "archive.gemini"
  value = "49.12.124.107"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_aur_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
294
  value = hcloud_server.aur.ipv4_address
295
296
297
298
299
300
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_aur_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
301
  value = hcloud_server.aur.ipv6_address
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_aur_mx" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur"
  value = "10 mx"
  type = "MX"
}

resource "hetznerdns_record" "archlinux_org_aur_txt" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur"
  value = "\"v=spf1 a ?all\""
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_aur_dev_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur-dev"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
322
  value = hcloud_server.aur-dev.ipv4_address
323
324
325
326
327
328
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_aur_dev_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur-dev"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
329
  value = hcloud_server.aur-dev.ipv6_address
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_aur4_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur4"
  value = "5.9.250.164"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_aur4_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "aur4"
  value = "2a01:4f8:160:3033::2"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_bbs_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "bbs"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
350
  value = hcloud_server.bbs.ipv4_address
351
352
353
354
355
356
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_bbs_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "bbs"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
357
  value = hcloud_server.bbs.ipv6_address
358
359
360
361
362
363
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_bugs_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "bugs"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
364
  value = hcloud_server.bugs.ipv4_address
365
366
367
368
369
370
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_bugs_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "bugs"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
371
  value = hcloud_server.bugs.ipv6_address
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
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_dragon_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "dragon"
  value = "195.201.167.210"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_dragon_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "dragon"
  value = "2a01:4f8:13a:102a::2"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_gemini_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "gemini"
  value = "49.12.124.107"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_gemini_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "gemini"
  value = "2a01:4f8:242:5614::2"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_gitlab_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "gitlab"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
406
  value = hcloud_server.gitlab.ipv4_address
407
408
409
410
411
412
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_gitlab_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "gitlab"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
413
  value = hcloud_server.gitlab.ipv6_address
414
415
416
417
418
419
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_homedir_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "homedir"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
420
  value = hcloud_server.homedir.ipv4_address
421
422
423
424
425
426
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_homedir_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "homedir"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
427
  value = hcloud_server.homedir.ipv6_address
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_lists_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "lists"
  value = "5.9.250.164"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_lists_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "lists"
  value = "2a01:4f8:160:3033::2"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_lists_mx" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "lists"
  value = "10 luna"
  type = "MX"
}

resource "hetznerdns_record" "archlinux_org_luna_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "luna"
  value = "5.9.250.164"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_luna_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "luna"
  value = "2a01:4f8:160:3033::2"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_luna_txt" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "luna._domainkey"
  value = "\"v=DKIM1; k=rsa; s=email; \" \"p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvXrAPvtdX8Jrk4zmyk8w9T2zdAJGe7z0+4XHWWiuzH8Zse6S7oXiS9CVaPOsu0TZqHqhuclASU7qh0NXFwWyi2xRPyJOqH2Clu7vHS3j5F4TjURFOp4/EbA0iQu4rbItl4AU11z2pGSEj5SykUsrH+jjdqzNqAG9d4lNvkTs6RRzPF3KhhY+XljaeysEyDSS4ap4E0DYcduSIX\" \"oD1exFv4SEbXThD9PC1u81w4xusnmwmfHtR7aazeqPDP+S+FqDRy2woCaQb/VMbqMYVuWTVKJ2RxFyTKredOOV2c5kzih7GViwoetll/rTqO4aVbeir9K4f6YZg85dSQtVwEat7LV+zBnQwp3ivWkrIk8VEdSsCSaJlgattBiPHsfFFv1xw4qi3h+UvfCGgz35dtlnzd/noGhNARg0Z+kaMSTjy75V1mKx5sCH0o8nAX2XU8akJfLz58Vg\" \"kTx/sfealtwNA0gTy1t1jV8q0OF5RA0IeMRgCzeH2USOZI98W+EAUsGG5653Vzmp3FJRWp1tWJwRJ0M/aZ3ka/G1iTx3rNNcadVk+4q3gz3KnlAlun+m58y8pNWKjYuxmu9xkDRwM/33rv98j0R8HZO7HFL+1vjKkxSEuzmnTQ2O9F76/OsQoDPZ1Z6nJRvK8ts8PQr4ASKohby62+1F1M8U2Xn7u84dYLUCAwEAAQ==\""
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_luna2_txt" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "luna2._domainkey"
  value = "\"v=DKIM1; k=rsa; s=email; \" \"p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvXrAPvtdX8Jrk4zmyk8w9T2zdAJGe7z0+4XHWWiuzH8Zse6S7oXiS9CVaPOsu0TZqHqhuclASU7qh0NXFwWyi2xRPyJOqH2Clu7vHS3j5F4TjURFOp4/EbA0iQu4rbItl4AU11z2pGSEj5SykUsrH+jjdqzNqAG9d4lNvkTs6RRzPF3KhhY+XljaeysEyDSS4ap4E0DYcduSIX\" \"oD1exFv4SEbXThD9PC1u81w4xusnmwmfHtR7aazeqPDP+S+FqDRy2woCaQb/VMbqMYVuWTVKJ2RxFyTKredOOV2c5kzih7GViwoetll/rTqO4aVbeir9K4f6YZg85dSQtVwEat7LV+zBnQwp3ivWkrIk8VEdSsCSaJlgattBiPHsfFFv1xw4qi3h+UvfCGgz35dtlnzd/noGhNARg0Z+kaMSTjy75V1mKx5sCH0o8nAX2XU8akJfLz58Vg\" \"kTx/sfealtwNA0gTy1t1jV8q0OF5RA0IeMRgCzeH2USOZI98W+EAUsGG5653Vzmp3FJRWp1tWJwRJ0M/aZ3ka/G1iTx3rNNcadVk+4q3gz3KnlAlun+m58y8pNWKjYuxmu9xkDRwM/33rv98j0R8HZO7HFL+1vjKkxSEuzmnTQ2O9F76/OsQoDPZ1Z6nJRvK8ts8PQr4ASKohby62+1F1M8U2Xn7u84dYLUCAwEAAQ==\""
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_mailman3_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "mailman3"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
483
  value = hcloud_server.mailman3.ipv4_address
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_master_key_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "master-key"
  value = "138.201.81.199"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_master_key_mx" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "master-key"
  value = "10 mx"
  type = "MX"
}

resource "hetznerdns_record" "archlinux_org_matrix_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "matrix"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
504
  value = hcloud_server.matrix.ipv4_address
505
506
507
508
509
510
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_monitoring_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "monitoring"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
511
  value = hcloud_server.monitoring.ipv4_address
512
513
514
  type = "A"
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
515
516
517
518
519
520
521
resource "hetznerdns_record" "archlinux_org_monitoring_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "monitoring"
  value = hcloud_server.monitoring.ipv6_address
  type = "AAAA"
}

522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
resource "hetznerdns_record" "archlinux_org_mx_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "mx"
  value = "88.198.91.70"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_mx_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "mx"
  value = "2a01:4f8:160:6087::1"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_orion_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "orion"
  value = "88.198.91.70"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_orion_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "orion"
  value = "2a01:4f8:160:6087::1"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_orion_txt" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "orion._domainkey"
  value = "\"v=DKIM1; k=rsa; s=email; \" \"p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAyK/JZ94O4TXYnmDhWTdbouEsLI3cBBbocliExS9Xa1si7dWMT22y619EhtHx5hRvSlN+ur3eaUC/85MN30dEDYTxO4EnNjgNRqQlE2NHd6lpAlpfHpE2vd5YcJMcx1/gy1PBCWiGv3F6n+XpoPby0Ayy0UhklQZ/gRRuspinxACDzWCMp7prncGOF42TnU81sKAVGGAmrt6Hpz\" \"wzq218BFWbxjcEIfSR+7rJXVT2DmPxBzuic0iXJhZSHmyODf7R3eAmvHgEUnz4+tk4PyXhBzp04bkMcV/I4NWS4juPqeb5x0dl0i9YYhqDPArnxnKBSyz6ABJLY1NE+5UJaxNnGLgsimvn4qt/uWxC/TuqjhNA7LcdqMUboWEB85mhabr3WNbabOhOXgEQQfh43g/E81ddEfLlXKL69D7B5YE6QjwsqKYb+fogpXiqMjoLKp9SHvuyqX+A\" \"eFFgrX8bcP2bzGjO5M8T+kT8K+OJeqdwEXBHyBFY9cCSrekYPa9zVQltw4TR4QTacz0UTAQOFwn6M+y2guXROlfImJm6PZrbPsqPUFjaf3vVw3/TdUTA32CuXdIZc9O7PZQUjIMPI2lTX3U6XRPk9zG0PqGYkRfYnYVD+1es44zgOGU8RTe1beQXKYqv9vjMQB67hcYUPUv0ZO++TmztvUjMJPvfJT7SOkkCAwEAAQ==\" "
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_phrik_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "phrik"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
560
  value = hcloud_server.phrik.ipv4_address
561
562
563
564
565
566
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_quassel_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "quassel"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
567
  value = hcloud_server.quassel.ipv4_address
568
569
570
571
572
573
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_quassel_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "quassel"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
574
  value = hcloud_server.quassel.ipv6_address
575
576
577
578
579
580
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_reproducible_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "reproducible"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
581
  value = hcloud_server.reproducible.ipv4_address
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_runner1_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "runner1"
  value = "169.50.62.125"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_runner2_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "runner2"
  value = "147.75.80.217"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_runner2_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "runner2"
  value = "2604:1380:2001:4500::3"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_secure_runner1_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "secure-runner1"
  value = "116.202.134.150"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_secure_runner1_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "secure-runner1"
  value = "2a01:4f8:231:4e1e::2"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_secure_runner2_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "secure-runner2"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
623
  value = hcloud_server.secure-runner2.ipv4_address
624
625
626
627
628
629
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_secure_runner2_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "secure-runner2"
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
630
  value = hcloud_server.secure-runner2.ipv6_address
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_state_a" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "state"
  value = "116.203.16.252"
  type = "A"
}

resource "hetznerdns_record" "archlinux_org_state_aaaa" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "state"
  value = "2a01:4f8:c2c:474::1"
  type = "AAAA"
}

resource "hetznerdns_record" "archlinux_org_archive_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "archive"
  value = "gemini"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_conf_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "conf"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_dev_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "dev"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_g2kjxsblac7x_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "g2kjxsblac7x"
  value = "gv-i5y6mnrelvpfiu.dv.googlehosted.com."
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_git_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "git"
  value = "luna"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_grafana_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "grafana"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_ipxe_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "ipxe"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_kanboard_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "kanboard"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_luna2_domainkey_aur_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "luna2._domainkey.aur"
  value = "luna2._domainkey"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_luna2_domainkey_lists_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "luna2._domainkey.lists"
  value = "luna2._domainkey"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_mail_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "mail"
  value = "orion"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_mailman_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "mailman"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_openpgpkey_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "openpgpkey"
  value = "orion"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_packages_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "packages"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_patchwork_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "patchwork"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_planet_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "planet"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_projects_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "projects"
  value = "luna"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_repos_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "repos"
  value = "gemini"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_rsync_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "rsync"
  value = "gemini"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_security_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "security"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_sources_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "sources"
  value = "gemini"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_static_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "static"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_static_conf_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "static.conf"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_status_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "status"
  value = "stats.uptimerobot.com."
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_svn_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "svn"
  value = "gemini"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_wiki_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "wiki"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_www_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "www"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_zabbix_cname" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "zabbix"
  value = "apollo"
  type = "CNAME"
}

resource "hetznerdns_record" "archlinux_org_matrix_tcp_srv" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "_matrix._tcp"
  value = "10 0 8448 matrix"
  type = "SRV"
}

resource "hetznerdns_record" "archlinux_org_dmarc_txt" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "_dmarc"
  value = "\"v=DMARC1; p=none; rua=mailto:dmarc-reports@archlinux.org; ruf=mailto:dmarc-reports@archlinux.org;\""
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_github_challenge_archlinux" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "_github-challenge-archlinux"
  value = "\"824af4446e\""
  type = "TXT"
}

resource "hetznerdns_record" "archlinux_org_github_challenge_archlinux_www" {
  zone_id = hetznerdns_zone.archlinux.id
  name = "_github-challenge-archlinux.www"
  value = "\"b53f311f86\""
  type = "TXT"
870
871
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
872
resource "hcloud_rdns" "quassel_ipv4" {
873
874
  server_id  = hcloud_server.quassel.id
  ip_address = hcloud_server.quassel.ipv4_address
875
  dns_ptr    = "quassel.archlinux.org"
876
877
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
878
879
880
881
882
883
resource "hcloud_rdns" "quassel_ipv6" {
  server_id  = hcloud_server.quassel.id
  ip_address = hcloud_server.quassel.ipv6_address
  dns_ptr    = "quassel.archlinux.org"
}

Jelle van der Waa's avatar
Jelle van der Waa committed
884
resource "hcloud_server" "quassel" {
885
  name        = "quassel.archlinux.org"
886
  image       = data.hcloud_image.archlinux.id
Jelle van der Waa's avatar
Jelle van der Waa committed
887
  server_type = "cx11"
888
889
890
  lifecycle {
    ignore_changes = [image]
  }
Jelle van der Waa's avatar
Jelle van der Waa committed
891
}
Jelle van der Waa's avatar
Jelle van der Waa committed
892

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
893
resource "hcloud_rdns" "phrik_ipv4" {
894
895
  server_id  = hcloud_server.phrik.id
  ip_address = hcloud_server.phrik.ipv4_address
Jelle van der Waa's avatar
Jelle van der Waa committed
896
897
898
  dns_ptr    = "phrik.archlinux.org"
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
899
900
901
902
903
904
resource "hcloud_rdns" "phrik_ipv6" {
  server_id  = hcloud_server.phrik.id
  ip_address = hcloud_server.phrik.ipv6_address
  dns_ptr    = "phrik.archlinux.org"
}

Jelle van der Waa's avatar
Jelle van der Waa committed
905
906
resource "hcloud_server" "phrik" {
  name        = "phrik.archlinux.org"
907
  image       = data.hcloud_image.archlinux.id
Jelle van der Waa's avatar
Jelle van der Waa committed
908
  server_type = "cx11"
909
910
911
  lifecycle {
    ignore_changes = [image]
  }
Jelle van der Waa's avatar
Jelle van der Waa committed
912
}
Jelle van der Waa's avatar
Jelle van der Waa committed
913

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
914
resource "hcloud_rdns" "bbs_ipv4" {
915
916
  server_id  = hcloud_server.bbs.id
  ip_address = hcloud_server.bbs.ipv4_address
Jelle van der Waa's avatar
Jelle van der Waa committed
917
918
919
  dns_ptr    = "bbs.archlinux.org"
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
920
921
922
923
924
925
resource "hcloud_rdns" "bbs_ipv6" {
  server_id  = hcloud_server.bbs.id
  ip_address = hcloud_server.bbs.ipv6_address
  dns_ptr    = "bbs.archlinux.org"
}

Jelle van der Waa's avatar
Jelle van der Waa committed
926
927
resource "hcloud_server" "bbs" {
  name        = "bbs.archlinux.org"
928
  image       = data.hcloud_image.archlinux.id
Jelle van der Waa's avatar
Jelle van der Waa committed
929
  server_type = "cx21"
930
931
932
933
934
  lifecycle {
    ignore_changes = [image]
  }
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
935
resource "hcloud_rdns" "gitlab_ipv4" {
936
937
  server_id  = hcloud_server.gitlab.id
  ip_address = hcloud_server.gitlab.ipv4_address
938
939
940
  dns_ptr    = "gitlab.archlinux.org"
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
941
942
943
944
945
946
resource "hcloud_rdns" "gitlab_ipv6" {
  server_id  = hcloud_server.gitlab.id
  ip_address = hcloud_server.gitlab.ipv6_address
  dns_ptr    = "gitlab.archlinux.org"
}

947
948
resource "hcloud_server" "gitlab" {
  name        = "gitlab.archlinux.org"
949
  image       = data.hcloud_image.archlinux.id
950
  server_type = "cx51"
951
952
953
  lifecycle {
    ignore_changes = [image]
  }
Jelle van der Waa's avatar
Jelle van der Waa committed
954
}
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
955

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
956
resource "hcloud_rdns" "matrix_ipv4" {
957
958
  server_id  = hcloud_server.matrix.id
  ip_address = hcloud_server.matrix.ipv4_address
Jelle van der Waa's avatar
Jelle van der Waa committed
959
960
961
  dns_ptr    = "matrix.archlinux.org"
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
962
963
964
965
966
967
resource "hcloud_rdns" "matrix_ipv6" {
  server_id  = hcloud_server.matrix.id
  ip_address = hcloud_server.matrix.ipv6_address
  dns_ptr    = "matrix.archlinux.org"
}

Jelle van der Waa's avatar
Jelle van der Waa committed
968
969
resource "hcloud_server" "matrix" {
  name        = "matrix.archlinux.org"
970
  image       = data.hcloud_image.archlinux.id
971
  server_type = "cpx31"
Jelle van der Waa's avatar
Jelle van der Waa committed
972
973
974
975
  lifecycle {
    ignore_changes = [image]
  }
}
976

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
977
resource "hcloud_rdns" "acccounts_ipv4" {
978
979
  server_id  = hcloud_server.accounts.id
  ip_address = hcloud_server.accounts.ipv4_address
980
981
982
  dns_ptr    = "accounts.archlinux.org"
}

Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
983
984
985
986
987
988
resource "hcloud_rdns" "acccounts_ipv6" {
  server_id  = hcloud_server.accounts.id
  ip_address = hcloud_server.accounts.ipv6_address
  dns_ptr    = "accounts.archlinux.org"
}

989
990
resource "hcloud_server" "accounts" {
  name        = "accounts.archlinux.org"
991
  image       = data.hcloud_image.archlinux.id
992
  server_type = "cx11"
993
994
995
996
  provisioner "local-exec" {
    working_dir = ".."
    command = "ansible-playbook --ssh-extra-args '-o StrictHostKeyChecking=no' playbooks/accounts.archlinux.org.yml"
  }
997
998
999
1000
  lifecycle {
    ignore_changes = [image]
  }
}
For faster browsing, not all history is shown. View entire blame