From d378e050d9fc9d0537df31a303d6c5f4f590730c Mon Sep 17 00:00:00 2001 From: martijn Date: Sun, 15 Feb 2026 20:59:53 +0100 Subject: [PATCH] Update terraform/main.tf --- terraform/main.tf | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index fd0451b..f3f538a 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -1,10 +1,11 @@ + resource "proxmox_vm_qemu" "ubuntu2404_vm" { name = "terraform-vm" target_node = "nuctyzyzen7-1" vmid = 9505 + clone = "ubuntu-2404-ci-template" # Kloon de template full_clone = true - clone = "ubuntu-2404-ci-template" # jouw werkende template cores = 2 sockets = 1 @@ -13,18 +14,8 @@ resource "proxmox_vm_qemu" "ubuntu2404_vm" { machine = "q35" agent = 1 - # Bootdisk clonen van template - disk { - slot = "virtio0" - type = "disk" - storage = "zfs1" - size = "32G" - cache = "writeback" - discard = true - clone = "ubuntu-2404-ci-template/virtio0" # belangrijk! - } - - # Cloud-init CD-ROM wordt automatisch toegevoegd + # Eventuele extra disk toevoegen, maar voor bootdisk hoef je niets te doen + # cloud-init CD wordt automatisch aangemaakt disk { slot = "scsi1" type = "cdrom" @@ -37,7 +28,7 @@ resource "proxmox_vm_qemu" "ubuntu2404_vm" { bridge = "vmbr0" } - # Cloud-init instellingen + # Cloud-init configuratie os_type = "cloud-init" ciuser = "martijn" cipassword = "Gwh28dgcmp!"