Update terraform/main.tf
This commit is contained in:
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user