feat(terraform): Mise à jour provider Proxmox v3.0.2-rc05

Mettre à jour version provider et ajuster syntaxe ressources pour compatibilité.
This commit is contained in:
Tellsanguis 2025-11-26 19:31:03 +01:00
parent 8c738e9e19
commit 155de75fbf
3 changed files with 42 additions and 30 deletions

View file

@ -4,7 +4,7 @@ terraform {
required_providers {
proxmox = {
source = "telmate/proxmox"
version = "~> 2.9"
version = "3.0.2-rc05"
}
local = {
source = "hashicorp/local"
@ -20,32 +20,36 @@ provider "proxmox" {
pm_tls_insecure = var.proxmox_tls_insecure
}
# K3s Server VM on pve1
# K3s Server VM on acemagician
resource "proxmox_vm_qemu" "k3s_server_1" {
name = "k3s-server-1"
target_node = "pve1"
target_node = "acemagician"
clone = var.ubuntu_template
cores = var.k3s_server_1_config.cores
sockets = 1
memory = var.k3s_server_1_config.memory
agent = 1
cpu {
cores = var.k3s_server_1_config.cores
sockets = 1
}
memory = var.k3s_server_1_config.memory
agent = 1
boot = "order=scsi0"
scsihw = "virtio-scsi-single"
onboot = true
network {
id = 0
model = "virtio"
bridge = var.k3s_network_bridge
}
disk {
slot = 0
slot = "scsi0"
size = var.k3s_server_1_config.disk_size
type = "scsi"
type = "disk"
storage = var.storage_pool
iothread = 1
iothread = true
}
ipconfig0 = "ip=${var.k3s_server_1_config.ip},gw=${var.k3s_gateway}"