From 0d56f2196d2644bcdd9e3a0977613195778d23ac Mon Sep 17 00:00:00 2001 From: VC Date: Wed, 9 Apr 2025 08:44:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5:=20remove=20ovh=20related=20provid?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .terraform.lock.hcl | 22 ---------------------- README.md | 4 ---- providers.tf | 8 -------- proxmox_lxc_container/locals.tf | 2 -- proxmox_lxc_container/main.tf | 15 --------------- proxmox_lxc_container/providers.tf | 4 ---- 6 files changed, 55 deletions(-) diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl index ee4bb38..eefe9ff 100644 --- a/.terraform.lock.hcl +++ b/.terraform.lock.hcl @@ -40,25 +40,3 @@ provider "registry.opentofu.org/hashicorp/random" { "zh:f021cfbe23bdb32738f170c1ae736ffb769a2fa3dcafd0f9906155c2e21377e4", ] } - -provider "registry.opentofu.org/ovh/ovh" { - version = "1.6.0" - constraints = "1.6.0" - hashes = [ - "h1:gGWAYw7c/JcN6dikNnUVmRiTwW+wnxbVJNj60aWqaZo=", - "zh:074e11927fc24c2bf67eec70d7eefb27e1dbccac8c6fa774c4ead16cd24b2311", - "zh:206fc093665abfc66af07c17ea983b104334d47bc4eae5d5f8f5c97f37de1482", - "zh:22eaf2b01dd220b8d8a917436eb9ef540d77fe59b7a08728ac3acaae45457180", - "zh:2ed6c8b2e4376a5cd429307a43162ebe1b2b6f3cf9515f00bedc2ceeb1366623", - "zh:35f1d41845a843d09777b7fde8f7156882a5f4ca43482be733f0193231095303", - "zh:360ca7646036ce6fa9b82fb7aee9731c36454b82bbd61175df3df658ec98b08c", - "zh:4a7314e12580a471f632157863fe505a399f4137af86a6c103190b9b5357c17b", - "zh:57e966c77ec2864afff5ea8e83d9d312ef25c8668ae0764069e9bf8ec0943fe2", - "zh:72b488b29b6eec07365c47f446cda9fede78bb625f759ba82b61271650fa8af1", - "zh:acbee884c4ad40e96a2c0975abe288f33b30feab718d3f2f1088ccef7b4a4b64", - "zh:b101a11bfb770f9f1f601e9de9a795aeac461dfec23c5f7d0d55991334f9a360", - "zh:c27f4e8d33fff58b9bf8bff6e1ee23fc75255f6b8a222634a0d7e3a27af915e1", - "zh:fc873db450c530d51de494884345b601651f08b4c885d2e157ed7da20e8f18d6", - "zh:ffbca7a1083107468011dd073273bf59f9d3f0d21a739dc57ca3f8bebbbb53b7", - ] -} diff --git a/README.md b/README.md index 43535dd..ecc1d0a 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,6 @@ # Proxmox related export PROXMOX_VE_USERNAME= export PROXMOX_VE_PASSWORD= -# OVH related -export OVH_APPLICATION_KEY= -export OVH_APPLICATION_SECRET= -export OVH_CONSUMER_KEY= # Home related to store tfstate export TF_VAR_HOME=${HOME} ``` diff --git a/providers.tf b/providers.tf index f7450b4..0a5d8e4 100644 --- a/providers.tf +++ b/providers.tf @@ -1,9 +1,5 @@ terraform { required_providers { - ovh = { - source = "ovh/ovh" - version = "1.6.0" - } proxmox = { source = "bpg/proxmox" version = "0.71.0" @@ -11,10 +7,6 @@ terraform { } } -provider "ovh" { - endpoint = "ovh-eu" -} - provider "proxmox" { endpoint = "https://serenor.dmz.mateu.be:8006" insecure = "true" diff --git a/proxmox_lxc_container/locals.tf b/proxmox_lxc_container/locals.tf index 4d433c2..8d8e597 100644 --- a/proxmox_lxc_container/locals.tf +++ b/proxmox_lxc_container/locals.tf @@ -3,8 +3,6 @@ locals { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILxJNQPyVqQG1C5xEMuyUF9AzZd8s5J7k0kZ7qzn9a0P cveret@HLD5CD4424T4V", "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjHhcQS8S9k/GX9TyD2F6/jOWwSvoYDIXetLOi0Nm2t mortal@baybay-ponay.mateu.be" ] - public_ipv4_addr = "82.66.135.228" private_ipv4_prefix = "10.233.212" public_ipv6_prefix = "2a01:e0a:9bd:2811" - infra_related_domain = "mateu.be" } diff --git a/proxmox_lxc_container/main.tf b/proxmox_lxc_container/main.tf index afe2509..285d231 100644 --- a/proxmox_lxc_container/main.tf +++ b/proxmox_lxc_container/main.tf @@ -1,18 +1,3 @@ -# Add a record to a sub-domain -resource "ovh_domain_zone_record" "record_v4" { - zone = local.infra_related_domain - subdomain = "${var.server_name}.dmz" - fieldtype = "A" - target = local.public_ipv4_addr -} - -resource "ovh_domain_zone_record" "record_v6" { - zone = local.infra_related_domain - subdomain = "${var.server_name}.dmz" - fieldtype = "AAAA" - target = "${local.public_ipv6_prefix}::${var.ip_suffix}" -} - resource "proxmox_virtual_environment_container" "container" { node_name = "serenor" description = var.server_desc diff --git a/proxmox_lxc_container/providers.tf b/proxmox_lxc_container/providers.tf index fd7e156..9d8cdd4 100644 --- a/proxmox_lxc_container/providers.tf +++ b/proxmox_lxc_container/providers.tf @@ -1,9 +1,5 @@ terraform { required_providers { - ovh = { - source = "ovh/ovh" - version = "1.6.0" - } proxmox = { source = "bpg/proxmox" version = "0.71.0"