cambio IPs por colisión con rango DHCP
This commit is contained in:
parent
3966fbb983
commit
75a1827132
4
main.tf
4
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"
|
||||
|
Loading…
Reference in New Issue
Block a user