From 55b4af7f7aa1c6b8011adc4b3bceac48996d4e29 Mon Sep 17 00:00:00 2001 From: Daniel Ankers Date: Thu, 5 Oct 2023 13:18:42 +0100 Subject: [PATCH] Change Proxmox VM IP allocation to DHCP; Give Guacamole connections keys which are known at apply time --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 757ef72..72aa7d4 100644 --- a/main.tf +++ b/main.tf @@ -429,7 +429,7 @@ resource "proxmox_vm_qemu" "vyos_router" { network, ] } - ipconfig0 = "ip=172.29.7.6${count.index + 1}/24,gw=172.29.7.1" + ipconfig0 = "ip=dhcp" sshkeys = < x } + for_each = { for x in proxmox_vm_qemu.vyos_router: x.name => x } name = each.value.name parent_identifier = guacamole_connection_group.routers.identifier parameters {