aboutsummaryrefslogtreecommitdiff
path: root/terraform/dns
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-08 16:54:04 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-08 16:54:36 +0100
commit5b1279c3dd28a2c0252624c36e937c59db15270d (patch)
tree2a14ab954a3fac6fde17c05b5821f65c5bd4ba3b /terraform/dns
parent9e4e02fdfb5a9e038c5e09a38fa51b457164156b (diff)
downloadinfra-5b1279c3dd28a2c0252624c36e937c59db15270d.tar.gz
infra-5b1279c3dd28a2c0252624c36e937c59db15270d.tar.bz2
infra-5b1279c3dd28a2c0252624c36e937c59db15270d.tar.xz
infra-5b1279c3dd28a2c0252624c36e937c59db15270d.zip
minio
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"
-}