fix(terraform): Configuration nœuds cluster et stockage

This commit is contained in:
Tellsanguis 2025-11-26 19:27:20 +01:00
parent 573852579f
commit 262f5b19e4
7 changed files with 61 additions and 37 deletions

View file

@ -25,6 +25,7 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
name = "k3s-server-1"
target_node = "acemagician"
clone = var.ubuntu_template
full_clone = true
cpu {
cores = var.k3s_server_1_config.cores
@ -48,7 +49,7 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
slot = "scsi0"
size = var.k3s_server_1_config.disk_size
type = "disk"
storage = var.storage_pool
storage = var.k3s_server_1_storage_pool
iothread = true
}

View file

@ -53,6 +53,12 @@ variable "storage_pool" {
type = string
}
variable "k3s_server_1_storage_pool" {
description = "Storage pool for k3s-server-1 disk (linstor_storage for HA)"
type = string
default = "linstor_storage"
}
variable "snippets_storage" {
description = "Proxmox storage for cloud-init snippets"
type = string