From 149f2bf76b5b37198477de9d081d39157b53a550 Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:21:18 +0200 Subject: [PATCH] no more contabo terraform --- tf-infra/contabo/.gitignore | 4 ---- tf-infra/contabo/.terraform.lock.hcl | 25 ------------------------- tf-infra/contabo/README.md | 15 --------------- tf-infra/contabo/contabo.tf | 14 -------------- tf-infra/contabo/versions.tf | 13 ------------- 5 files changed, 71 deletions(-) delete mode 100644 tf-infra/contabo/.gitignore delete mode 100644 tf-infra/contabo/.terraform.lock.hcl delete mode 100644 tf-infra/contabo/README.md delete mode 100644 tf-infra/contabo/contabo.tf delete mode 100644 tf-infra/contabo/versions.tf diff --git a/tf-infra/contabo/.gitignore b/tf-infra/contabo/.gitignore deleted file mode 100644 index 93bec2b..0000000 --- a/tf-infra/contabo/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/.terraform -/.env -# Copy to secrets -/terraform.tfstate* diff --git a/tf-infra/contabo/.terraform.lock.hcl b/tf-infra/contabo/.terraform.lock.hcl deleted file mode 100644 index 8bdf263..0000000 --- a/tf-infra/contabo/.terraform.lock.hcl +++ /dev/null @@ -1,25 +0,0 @@ -# This file is maintained automatically by "tofu init". -# Manual edits may be lost in future updates. - -provider "registry.opentofu.org/contabo/contabo" { - version = "0.1.23" - constraints = "0.1.23" - hashes = [ - "h1:8350dn6n8R149cCE6DzDoZtSs8uceTXqJKt5k4AFdtw=", - "zh:19bcf3660ac7545103cf999e0066442f9d6350db9654e1496726520cef287246", - "zh:28548ce7218bc36ce43ed3cdb6bf21a6313ded17ce924ea62a161f95f013211f", - "zh:41169b396e293e34550949ff217414eb168d3c049b5d0d773cbbd9e40242e98d", - "zh:4acbdfb227e635565974f6c2152e172a781000a2afe0216cdbf32baa1fd5482a", - "zh:63c007e7eaa0b0878728e25f5d5dc31de8fc700ccd4df75013d059319caaee94", - "zh:7505443485041c5d65b0c664d962e1fd379a05bb473e8fd2ac4f95d3984c5294", - "zh:954a8a497ab516342c00e80f3a12927928c1437267af9ca7d822ce58063224a8", - "zh:b57737d85aed73ec84c9c709d7a23985d6c61497bf082c1633eaacfb89bbaf53", - "zh:c009f0e49fac46684482f2c6acf5fee50b41cdad6e8883c22a9e95e38afe5dba", - "zh:c02eb8033be219219a72991e76f50af0d115d8c4a482dc6035c58a47cac285c1", - "zh:c5d79f17bf97f67d3d9b0aaa3fbaf14f3e8c690e06f11f099a6610583ef2cf74", - "zh:cf3ea5db022e8198a9510014cadd3bf97307401c3475e7b80e6ec5e494bac77d", - "zh:dbd20779f01363bb59c9376202bf15eab25ee5720d573502778d88935253e000", - "zh:df529bf335c867a6e34c5ac79fcafd062b812ddbc9871695bf2052efde657a3d", - "zh:ef297c827635430079154fce3d0c5258988893c2e4096cd48487cf7950ac9aec", - ] -} diff --git a/tf-infra/contabo/README.md b/tf-infra/contabo/README.md deleted file mode 100644 index 750f139..0000000 --- a/tf-infra/contabo/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# terraform - -Terraform files for my setup. - -The state can be found in an s3 bucket that is not managed via terraform and looks like it might contain it - -This uses the following environment variables: - -``` -# contabo from https://my.contabo.com/api/details -export CNTB_OAUTH2_CLIENT_ID="id" -export CNTB_OAUTH2_CLIENT_SECRET="secret" -export CNTB_OAUTH2_USER="email" -export CNTB_OAUTH2_PASS="password" -``` diff --git a/tf-infra/contabo/contabo.tf b/tf-infra/contabo/contabo.tf deleted file mode 100644 index afb5a3e..0000000 --- a/tf-infra/contabo/contabo.tf +++ /dev/null @@ -1,14 +0,0 @@ -resource "contabo_instance" "vps1" { - display_name = "vps1" - product_id = "V1" - image_id = data.contabo_image.ubuntu_22_04.id -} - -resource "contabo_instance" "vps2" { - display_name = "vps2" - product_id = "V1" -} - -data "contabo_image" "ubuntu_22_04" { - id = "afecbb85-e2fc-46f0-9684-b46b1faf00bb" -} diff --git a/tf-infra/contabo/versions.tf b/tf-infra/contabo/versions.tf deleted file mode 100644 index f7ecbf4..0000000 --- a/tf-infra/contabo/versions.tf +++ /dev/null @@ -1,13 +0,0 @@ -terraform { - required_providers { - contabo = { - source = "contabo/contabo" - version = "~> 0.1.23" - } - } - backend "s3" { - bucket = "nilstrieb-states" - key = "contabo-terraform.tfstate" - region = "eu-central-1" - } -}