Change Proxmox VM IP allocation to DHCP; Give Guacamole connections keys which are known at apply time

zot
Daniel Ankers 2023-10-05 13:18:42 +01:00
parent 1fc76b01ea
commit 55b4af7f7a
1 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@ resource "proxmox_vm_qemu" "vyos_router" {
network, network,
] ]
} }
ipconfig0 = "ip=172.29.7.6${count.index + 1}/24,gw=172.29.7.1" ipconfig0 = "ip=dhcp"
sshkeys = <<EOF sshkeys = <<EOF
${var.ssh_key} ${var.ssh_key}
EOF EOF
@ -443,7 +443,7 @@ resource "guacamole_connection_group" "routers" {
resource "guacamole_connection_ssh" "vyos_vms" { resource "guacamole_connection_ssh" "vyos_vms" {
for_each = { for x in proxmox_vm_qemu.vyos_router: x.id => x } for_each = { for x in proxmox_vm_qemu.vyos_router: x.name => x }
name = each.value.name name = each.value.name
parent_identifier = guacamole_connection_group.routers.identifier parent_identifier = guacamole_connection_group.routers.identifier
parameters { parameters {