Files
spinifex/scripts/iac/proxmox/main.tf
T
2026-02-14 19:27:13 +10:00

29 lines
553 B
Terraform

terraform {
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "0.52.0"
}
}
}
# API token is read from PROXMOX_VE_API_TOKEN env var automatically
provider "proxmox" {
endpoint = var.proxmox_endpoint
insecure = true
ssh {
agent = false
username = var.proxmox_ssh_username
private_key = file(pathexpand(var.ssh_private_key_path))
dynamic "node" {
for_each = var.nodes
content {
name = node.value.name
address = node.value.address
}
}
}
}