From a8f79c226b940781d80d5523ab80e3a5538c69ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Limpinho?= <53994778+TomasLimpinho@users.noreply.github.com> Date: Tue, 19 Aug 2025 22:51:40 +0100 Subject: [PATCH] a --- proxmox.tf | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/proxmox.tf b/proxmox.tf index d5a74aa..6bf013a 100644 --- a/proxmox.tf +++ b/proxmox.tf @@ -1,12 +1,10 @@ provider "proxmox" { pm_api_url = var.proxmox_server } - resource "proxmox_pool" "resource-pool" { poolid = "resource-pool" comment = "pool auto created" } - resource "proxmox_vm_qemu" "vm-kubernetes-01" { name = "VM-kubernetes-01" target_node = "fenix" @@ -25,35 +23,38 @@ resource "proxmox_vm_qemu" "vm-kubernetes-01" { pool = "resource-pool" tags = "iac-tag" os_type = "ubuntu" - + ipconfig0 = "ip=192.168.1.24/24" cpu { - cores = 2 - sockets = 1 - type = "host" + cores = 2 + sockets = 1 + type = "x86-64-v2-AES" } - network { - id = 0 - model = "virtio" + id = 0 + model = "virtio" bridge = "vmbr0" } + disks { - disk { - type = "scsi" - storage = "local-lvm" - size = "64G" - backup = true + ide { + ide2 { + cdrom { + iso = "Fedora-Workstation-Live-x86_64-41-1.4.iso" + } + } + } + scsi { + scsi0 { + disk { + backup = true + size = "64G" + storage = "local-lvm" + } + } + } } - - cdrom { - iso = "Fedora-Workstation-Live-x86_64-41-1.4.iso" - storage = "local-lvm" - } - efidisk { - size = "4M" + efitype = "4m" storage = "local-lvm" } - - ipconfig0 = "ip=192.168.1.24/24" } \ No newline at end of file