cambio IPs por colisión con rango DHCP

This commit is contained in:
serxoz 2023-09-14 13:30:14 +02:00
parent 3966fbb983
commit 75a1827132

View File

@ -75,8 +75,8 @@ resource "proxmox_vm_qemu" "hashi_server" {
# the ${count.index + 1} thing appends text to the end of the ip address
# in this case, since we are only adding a single VM, the IP will
# be 192.168.1.71 since count.index starts at 0. this is how you can create
# multiple VMs and have an IP assigned to each (.71, .72, .73, etc.)
ipconfig0 = "ip=192.168.1.7${count.index + 1}/24,gw=192.168.1.1"
# multiple VMs and have an IP assigned to each (.111, .112, .113, etc.)
ipconfig0 = "ip=192.168.1.11${count.index + 1}/24,gw=192.168.1.1"
# username by cloud-init
ciuser = "alpine"