From 75a182713238a4e4d98f09611105939949e651ca Mon Sep 17 00:00:00 2001 From: serxoz Date: Thu, 14 Sep 2023 13:30:14 +0200 Subject: [PATCH] =?UTF-8?q?cambio=20IPs=20por=20colisi=C3=B3n=20con=20rang?= =?UTF-8?q?o=20DHCP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 7cda4b5..5f8933c 100644 --- a/main.tf +++ b/main.tf @@ -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"