From bb38c261afabea3c19507a687dbb68cd25c35645 Mon Sep 17 00:00:00 2001 From: eding Date: Sun, 19 Jul 2026 11:48:14 +0200 Subject: [PATCH] fix: restore proxmox bridge creation --- terraform/main.tf | 6 +++--- terraform/variables.tf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index 1cc339f..e091c86 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -36,13 +36,13 @@ resource "null_resource" "stage_talos_image" { # Create all required network bridges resource "proxmox_virtual_environment_network_linux_bridge" "cluster_bridge" { - for_each = {} + for_each = local.unique_bridges node_name = each.value.proxmox_node name = each.value.bridge_name comment = "Auto-created bridge for Talos VLAN ${each.value.vlan_id} on ${each.value.proxmox_node}" ports = var.create_vlan_interface ? ["${each.value.phys_iface}.${each.value.vlan_id}"] : [each.value.phys_iface] - vlan_aware = false # The VLAN tagging is handled by the interface + vlan_aware = false } # Create the Virtual Machines @@ -118,7 +118,7 @@ resource "proxmox_virtual_environment_vm" "vm" { file_id = each.value.iso_file } - # Ensure bridges are created before VMs + # Ensure image staging and bridge setup complete before VMs depends_on = [ proxmox_virtual_environment_network_linux_bridge.cluster_bridge, null_resource.stage_talos_image, diff --git a/terraform/variables.tf b/terraform/variables.tf index 464ebd6..fe2b837 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -171,7 +171,7 @@ variable "node_interfaces" { variable "create_vlan_interface" { description = "Whether to create VLAN interfaces (true for tagged VLANs, false for untagged)" type = bool - default = false + default = true } # --- Registry Proxy Configuration ---