aboutsummaryrefslogtreecommitdiff
path: root/terraform/dns
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/dns')
-rw-r--r--terraform/dns/main.tf23
-rw-r--r--terraform/dns/trygvis.tf7
-rw-r--r--terraform/dns/versions.tf11
3 files changed, 12 insertions, 29 deletions
diff --git a/terraform/dns/main.tf b/terraform/dns/main.tf
index d80fb70..e476f03 100644
--- a/terraform/dns/main.tf
+++ b/terraform/dns/main.tf
@@ -1,21 +1,8 @@
terraform {
- backend "local" {
- path = "../state/dns"
+ required_providers {
+ linode = {
+ version = "~> 1.13"
+ source = "linode/linode"
+ }
}
}
-
-provider "linode" {
- version = "~> 1.13"
-
- token = data.ansiblevault_path.linode_token.value
-}
-
-provider "ansiblevault" {
- version = "~> 2.2"
- root_folder = "../../ansible"
-}
-
-data "ansiblevault_path" "linode_token" {
- path = "group_vars/all/linode-dns.yml"
- key = "linode_token_v4"
-}
diff --git a/terraform/dns/trygvis.tf b/terraform/dns/trygvis.tf
index 659d56a..531661f 100644
--- a/terraform/dns/trygvis.tf
+++ b/terraform/dns/trygvis.tf
@@ -117,3 +117,10 @@ resource "linode_domain_record" "unifi" {
record_type = "CNAME"
target = "vs.trygvis.io"
}
+
+resource "linode_domain_record" "minio" {
+ domain_id = linode_domain.root.id
+ name = "minio"
+ record_type = "CNAME"
+ target = "vs.trygvis.io"
+}
diff --git a/terraform/dns/versions.tf b/terraform/dns/versions.tf
deleted file mode 100644
index f98850f..0000000
--- a/terraform/dns/versions.tf
+++ /dev/null
@@ -1,11 +0,0 @@
-terraform {
- required_providers {
- linode = {
- source = "linode/linode"
- }
- ansiblevault = {
- source = "MeilleursAgents/ansiblevault"
- }
- }
- required_version = ">= 0.13"
-}