fix: restore proxmox bridge creation

This commit is contained in:
eding 2026-07-19 11:48:14 +02:00
parent 1357a918df
commit bb38c261af
2 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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 ---