fix: use TF_VAR_ prefix for token credentials
Some checks failed
Gitea Actions Demo / Terraform Plan (push) Failing after 13s

- Restore pm_api_token_id and pm_api_token_secret variables
- Use TF_VAR_pm_api_token_id and TF_VAR_pm_api_token_secret env vars
- This is the standard Terraform way to pass variables via environment
This commit is contained in:
2026-02-27 20:43:39 +00:00
parent 9c1476b6bf
commit 364dc6b35b
4 changed files with 19 additions and 6 deletions

View File

@@ -8,8 +8,10 @@ terraform {
}
provider "proxmox" {
pm_api_url = var.pm_api_url
pm_tls_insecure = true
pm_api_url = var.pm_api_url
pm_api_token_id = var.pm_api_token_id
pm_api_token_secret = var.pm_api_token_secret
pm_tls_insecure = true
}
resource "proxmox_vm_qemu" "alpacas" {

View File

@@ -1,3 +1,14 @@
variable "pm_api_token_id" {
type = string
description = "Proxmox API token ID (format: user@realm!tokenid)"
}
variable "pm_api_token_secret" {
type = string
sensitive = true
description = "Proxmox API token secret"
}
variable "target_node" {
type = string
}