Change Proxmox VM IP allocation to DHCP; Give Guacamole connections keys which are known at apply time
parent
1fc76b01ea
commit
55b4af7f7a
4
main.tf
4
main.tf
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue