terraform: describe the nixos.org records in route53
Right now the DNS is hosted on the udag.org servers and not directly changeable with code.
zimbatm committed
Dec 16, 2018 at 15:38 UTC
a4da296e54f9302185871bacb43c6925302ddcdf
1 file changed
+117
terraform/route53.tf
new
+117
@@ -0,0 +1,117 @@
1
+locals {
2
+ host_bastion = "34.254.208.229"
3
+ host_chef = "46.4.67.10"
4
+ host_www = "54.217.220.47"
5
+}
6
+
7
+resource "aws_route53_zone" "nixos" {
8
+ name = "nixos.org"
9
+}
10
+
11
+resource "aws_route53_record" "nixos-mx" {
12
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
13
+ name = ""
14
+ type = "MX"
15
+ ttl = "14300"
16
+
17
+ records = [
18
+ "10 mx00.udag.de.",
19
+ "20 mx01.udag.de.",
20
+ ]
21
+}
22
+
23
+resource "aws_route53_record" "nixos-naked" {
24
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
25
+ name = ""
26
+ type = "A"
27
+ ttl = "500"
28
+ records = ["${local.host_www}"]
29
+}
30
+
31
+resource "aws_route53_record" "nixos-www" {
32
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
33
+ name = "www"
34
+ type = "A"
35
+ ttl = "3600"
36
+ records = ["${local.host_www}"]
37
+}
38
+
39
+resource "aws_route53_record" "nixos-wild" {
40
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
41
+ name = "*"
42
+ type = "A"
43
+ ttl = "3600"
44
+ records = ["${local.host_www}"]
45
+}
46
+
47
+resource "aws_route53_record" "nixos-planet" {
48
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
49
+ name = "planet"
50
+ type = "A"
51
+ ttl = "3600"
52
+ records = ["${local.host_www}"]
53
+}
54
+
55
+resource "aws_route53_record" "nixos-conf" {
56
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
57
+ name = "conf"
58
+ type = "CNAME"
59
+ ttl = "3600"
60
+ records = ["nixconberlin.github.io"]
61
+}
62
+
63
+resource "aws_route53_record" "nixos-weekly" {
64
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
65
+ name = "weekly"
66
+ type = "CNAME"
67
+ ttl = "3600"
68
+ records = ["nixos.github.io"]
69
+}
70
+
71
+resource "aws_route53_record" "nixos-cache" {
72
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
73
+ name = "tarballs"
74
+ type = "CNAME"
75
+ ttl = "3600"
76
+ records = ["dualstack.v2.shared.global.fastly.net"]
77
+}
78
+
79
+resource "aws_route53_record" "nixos-tarballs" {
80
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
81
+ name = "tarballs"
82
+ type = "CNAME"
83
+ ttl = "3600"
84
+ records = ["d3am6xf9zisc71.cloudfront.net"]
85
+}
86
+
87
+resource "aws_route53_record" "nixos-releases" {
88
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
89
+ name = "tarballs"
90
+ type = "CNAME"
91
+ ttl = "3600"
92
+ records = ["d3g5gsiof5omrk.cloudfront.net."]
93
+}
94
+
95
+resource "aws_route53_record" "nixos-bastion" {
96
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
97
+ name = "bastion"
98
+ type = "A"
99
+ ttl = "600"
100
+ records = ["${local.host_bastion}"]
101
+}
102
+
103
+resource "aws_route53_record" "nixos-hydra-v4" {
104
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
105
+ name = "hydra"
106
+ type = "A"
107
+ ttl = "3600"
108
+ records = ["${local.host_chef}"]
109
+}
110
+
111
+resource "aws_route53_record" "nixos-hydra-v6" {
112
+ zone_id = "${aws_route53_zone.nixos.zone_id}"
113
+ name = "hydra"
114
+ type = "AAAA"
115
+ ttl = "3600"
116
+ records = ["2a01:4f8:140:248f::"]
117
+}