Files
proxmox-talos/terraform/main.tf
2026-02-15 20:28:51 +01:00

38 lines
663 B
HCL

resource "proxmox_vm_qemu" "vm1" {
name = "terraform-vm"
target_node = "nuctyzyzen7-1"
full_clone = true
cpu {
cores = 2
sockets = 1
}
memory = 2048
scsihw = "virtio-scsi-pci"
machine = "q35"
# Bootdisk cloned from template
disk {
slot = "virtio0"
type = "disk"
storage = "zfs1"
size = "32G"
cache = "writeback"
discard = true
}
network {
id = 0
model = "virtio"
bridge = "vmbr0"
}
# Cloud-init
ciuser = "martijn"
cipassword = "Gwh28dgcmp!"
ipconfig0 = "ip=dhcp"
searchdomain = "domain.local"
nameserver = "192.168.178.1"
agent = 1
}