Hooked nonprod terraform up to nonprod proxmox host

This commit is contained in:
bob
2026-04-10 21:57:58 -05:00
parent 13690e6c60
commit 3ccba290b1
2 changed files with 12 additions and 1 deletions

View File

@@ -10,9 +10,19 @@ terraform {
}
provider "proxmox" {
endpoint = var.proxmox_endpoint
endpoint = var.proxmox_endpoint
api_token = var.proxmox_api_token
# Set to true if using a self-signed certificate (common on home labs)
insecure = var.proxmox_insecure
}
data "proxmox_virtual_environment_nodes" "vm_nodes" {}
output "data_proxmox_virtual_environment_nodes" {
value = {
names = data.proxmox_virtual_environment_nodes.vm_nodes.names
cpu_count = data.proxmox_virtual_environment_nodes.vm_nodes.cpu_count
online = data.proxmox_virtual_environment_nodes.vm_nodes.online
}
}