Update terraform/main.tf

This commit is contained in:
2026-02-15 20:21:27 +01:00
parent 6bd78d3b2e
commit 01c4d0a781

View File

@@ -1,7 +1,7 @@
resource "proxmox_vm_qemu" "vm1" {
name = "terraform-vm"
target_node = "nuctyzyzen7-1"
clone = "ubuntu-2404-ci-template"
clone = "ubuntu-2404-ci-template" # je bestaande template
full_clone = true
cpu {
@@ -13,33 +13,13 @@ resource "proxmox_vm_qemu" "vm1" {
scsihw = "virtio-scsi-pci"
machine = "q35"
boot = "order=scsi0"
# Bootdisk
disk {
slot = "scsi0"
type = "disk"
storage = "zfs1"
size = "40G"
cache = "writeback"
discard = true
}
# Cloud-init CD-ROM
disk {
slot = "scsi1"
type = "cdrom"
storage = "zfs1"
}
network {
id = 0
model = "virtio"
bridge = "vmbr0"
}
# Cloud-init config
os_type = "cloud-init"
# Cloud-init configuratie
ciuser = "martijn"
cipassword = "Gwh28dgcmp!"
ipconfig0 = "ip=dhcp"