diff --git a/terraform/main.tf b/terraform/main.tf index 95b0618..d7edfe4 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -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"