Update terraform/main.tf

This commit is contained in:
2026-02-15 20:07:26 +01:00
parent c06de1ceaa
commit 6bf3b8d0cf

View File

@@ -10,26 +10,38 @@ resource "proxmox_vm_qemu" "vm1" {
} }
memory = 2048 memory = 2048
scsihw = "virtio-scsi-pci"
machine = "q35"
disk { disk {
slot = "scsi0" slot = 0
size = "40G"
type = "disk" type = "disk"
storage = "zfs1" storage = "zfs1"
size = "40G"
cache = "writeback"
discard = true
} }
# Cloud-init CD-ROM
disk {
slot = 1
type = "cdrom"
storage = "zfs1"
}
network { network {
id = 0 id = 0
model = "virtio" model = "virtio"
bridge = "vmbr0" bridge = "vmbr0"
} }
os_type = "cloud-init" # Cloud-init config
ipconfig0 = "ip=dhcp" os_type = "cloud-init"
ciuser = "martijn" ciuser = "martijn"
cipassword = "Gwh28dgcmp!" cipassword = "Gwh28dgcmp!"
agent = 1 ipconfig0 = "ip=dhcp"
scsihw = "virtio-scsi-pci"
machine = "q35"
searchdomain = "domain.local" searchdomain = "domain.local"
nameserver = "192.168.178.1" nameserver = "192.168.178.1"
}
agent = 1
}