From 5b1279c3dd28a2c0252624c36e937c59db15270d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 8 Jan 2021 16:54:04 +0100 Subject: minio --- terraform/dns/main.tf | 23 +++++------------------ terraform/dns/trygvis.tf | 7 +++++++ terraform/dns/versions.tf | 11 ----------- 3 files changed, 12 insertions(+), 29 deletions(-) delete mode 100644 terraform/dns/versions.tf (limited to 'terraform/dns') 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" -} -- cgit v1.2.3