This commit is contained in:
Tomás Limpinho
2025-08-19 22:44:16 +01:00
parent 82ac5d4e3c
commit 586ddcac65

View File

@ -1,10 +1,12 @@
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"
@ -23,38 +25,35 @@ 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 = "x86-64-v2-AES"
type = "host"
}
network {
id = 0
model = "virtio"
bridge = "vmbr0"
}
disks {
ide {
ide2 {
disk {
type = "scsi"
storage = "local-lvm"
size = "64G"
backup = true
}
cdrom {
iso = "Fedora-Workstation-Live-x86_64-41-1.4.iso"
}
}
}
scsi {
scsi0 {
disk {
backup = true
size = "64G"
storage = "local-lvm"
}
}
}
}
efidisk {
efitype = "4m"
size = "4M"
storage = "local-lvm"
}
ipconfig0 = "ip=192.168.1.24/24"
}