diff --git a/infrastructure-admin/main.tf b/infrastructure-admin/main.tf index c4ce222..8a75f6a 100644 --- a/infrastructure-admin/main.tf +++ b/infrastructure-admin/main.tf @@ -42,19 +42,25 @@ resource "proxmox_vm_qemu" "controller" { target_node = var.target_nodes["controller"] clone = var.template_id full_clone = true - cores = 2 - sockets = 1 + cpu { + cores = 2 + sockets = 1 + } memory = 1024 scsihw = "virtio-scsi-pci" disk { + slot = 0 size = "20G" storage = var.storage type = "scsi" } - network { bridge = var.bridge } + network { + id = 0 + model = "virtio" + bridge = var.bridge + } ipconfig0 = "ip=${var.controller_ip}/${var.netmask},gw=${var.gateway}" ciuser = "ubuntu" - citype = "cloud-init" sshkeys = var.ssh_public_key cicustom = <