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

48 lines
797 B
HCL

resource "proxmox_vm_qemu" "vm1" {
name = "terraform-vm"
target_node = "nuctyzyzen7-1"
clone = "ubuntu-2404-ci-template"
full_clone = true
cpu {
cores = 2
sockets = 1
}
memory = 2048
scsihw = "virtio-scsi-pci"
machine = "q35"
disk {
slot = 0
type = "disk"
storage = "zfs1"
size = "40G"
cache = "writeback"
discard = true
}
# Cloud-init CD-ROM
disk {
slot = 1
type = "cdrom"
storage = "zfs1"
}
network {
id = 0
model = "virtio"
bridge = "vmbr0"
}
# Cloud-init config
os_type = "cloud-init"
ciuser = "martijn"
cipassword = "Gwh28dgcmp!"
ipconfig0 = "ip=dhcp"
searchdomain = "domain.local"
nameserver = "192.168.178.1"
agent = 1
}