Files
HetznerTerra/terraform/main.tf
T
micqdf 5c53b8e06e
Deploy Cluster / Terraform (push) Failing after 53s
Deploy Cluster / Ansible (push) Has been skipped
fix: normalize Proxmox endpoint and stop dashboards self-trigger
Accept Proxmox API endpoints with or without /api2/json in CI and local
tfvars, and avoid running the dashboards workflow just because its own
workflow file changed during platform migrations.
2026-04-22 03:13:22 +00:00

29 lines
562 B
Terraform

terraform {
required_version = ">= 1.0"
required_providers {
local = {
source = "hashicorp/local"
version = "~> 2.5"
}
proxmox = {
source = "bpg/proxmox"
version = ">= 0.60.0"
}
}
}
locals {
proxmox_endpoint_normalized = format(
"%s/",
trimsuffix(replace(trimspace(var.proxmox_endpoint), "/api2/json", ""), "/")
)
}
provider "proxmox" {
endpoint = local.proxmox_endpoint_normalized
api_token = "${var.proxmox_api_token_id}=${var.proxmox_api_token_secret}"
insecure = var.proxmox_insecure
}