summaryrefslogtreecommitdiff
path: root/terraform/dns/trygvis.tf
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/dns/trygvis.tf')
-rw-r--r--terraform/dns/trygvis.tf119
1 files changed, 119 insertions, 0 deletions
diff --git a/terraform/dns/trygvis.tf b/terraform/dns/trygvis.tf
new file mode 100644
index 0000000..659d56a
--- /dev/null
+++ b/terraform/dns/trygvis.tf
@@ -0,0 +1,119 @@
+resource "linode_domain" "root" {
+ type = "master"
+ domain = "trygvis.io"
+
+ refresh_sec = 300
+ retry_sec = 300
+ soa_email = "root@trygvis.io"
+ status = "active"
+ tags = []
+ ttl_sec = 300
+}
+
+resource "linode_domain_record" "root-a" {
+ domain_id = linode_domain.root.id
+ name = ""
+ record_type = "A"
+ target = "176.58.112.84"
+}
+
+resource "linode_domain_record" "root-txt-google" {
+ domain_id = linode_domain.root.id
+ name = ""
+ record_type = "TXT"
+ target = "google-site-verification=fuNmCULxODJMSSlfa8w0SF-DLt2oTWCAGBvSNsUEB8k"
+ ttl_sec = 300
+}
+
+resource "linode_domain_record" "root-txt-amazon-ses" {
+ domain_id = linode_domain.root.id
+ name = "_amazonses"
+ record_type = "TXT"
+ target = "c3k5WNcOHhgLn27ed1s7YBq6xB4C/OoWuyKfqyeG31E="
+}
+
+resource "linode_domain_record" "root-txt-keybase" {
+ domain_id = linode_domain.root.id
+ name = "_keybase"
+ record_type = "TXT"
+ target = "keybase-site-verification=gcoO7zav4G2IK5KQdrWOgz_PD9wpZhz-0afIb1Kodrk"
+}
+
+resource "linode_domain_record" "root-cname-ses-1" {
+ domain_id = linode_domain.root.id
+ name = "k5o5gjadej2kkfncu36i3ef5gt473sxy._domainkey"
+ record_type = "CNAME"
+ target = "k5o5gjadej2kkfncu36i3ef5gt473sxy.dkim.amazonses.com"
+}
+
+resource "linode_domain_record" "root-cname-ses-2" {
+ domain_id = linode_domain.root.id
+ name = "imtuzw2lnfktlc7uongw433qbwjxxatg._domainkey"
+ record_type = "CNAME"
+ target = "imtuzw2lnfktlc7uongw433qbwjxxatg.dkim.amazonses.com"
+}
+
+resource "linode_domain_record" "dlock" {
+ domain_id = linode_domain.root.id
+ name = "dlock"
+ record_type = "A"
+ target = "35.205.192.14"
+}
+
+resource "linode_domain_record" "hash" {
+ domain_id = linode_domain.root.id
+ name = "hash"
+ record_type = "A"
+ target = "138.201.33.16"
+}
+
+resource "linode_domain_record" "hash-aaaa" {
+ domain_id = linode_domain.root.id
+ name = "hash"
+ record_type = "AAAA"
+ target = "2a01:4f8:171:34ad::2"
+}
+
+resource "linode_domain_record" "numquam" {
+ domain_id = linode_domain.root.id
+ name = "numquam"
+ record_type = "A"
+ target = "163.172.160.56"
+}
+
+# Aliases for trygvis.io
+resource "linode_domain_record" "mw" {
+ domain_id = linode_domain.root.id
+ name = "mw"
+ record_type = "CNAME"
+ target = "trygvis.io"
+}
+
+# Aliases for vs.trygvis.io
+resource "linode_domain_record" "nextcloud" {
+ domain_id = linode_domain.root.id
+ name = "nextcloud"
+ record_type = "CNAME"
+ target = "vs.trygvis.io"
+}
+
+resource "linode_domain_record" "grafana" {
+ domain_id = linode_domain.root.id
+ name = "grafana"
+ record_type = "CNAME"
+ target = "vs.trygvis.io"
+}
+
+resource "linode_domain_record" "owncloud" {
+ domain_id = linode_domain.root.id
+ name = "owncloud"
+ record_type = "CNAME"
+ target = "vs.trygvis.io"
+}
+
+resource "linode_domain_record" "unifi" {
+ domain_id = linode_domain.root.id
+ name = "unifi"
+ record_type = "CNAME"
+ target = "vs.trygvis.io"
+}