fix(terraform): Add explicit disk configuration to resolve scsi0 boot error
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 16s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 11s
CD - Deploy Infrastructure / Deploy on pve2 (push) Successful in 1m54s
CD - Deploy Infrastructure / Deploy on pve3 (push) Successful in 1m55s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Successful in 5m3s
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s

This commit is contained in:
Tellsanguis 2025-11-27 19:14:55 +01:00
parent e01514fb4f
commit c5ae6a3012
2 changed files with 22 additions and 0 deletions

View file

@ -54,6 +54,17 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
bridge = var.k3s_network_bridge
}
disks {
scsi {
scsi0 {
disk {
storage = var.k3s_server_1_storage_pool
size = var.k3s_server_1_config.disk_size
}
}
}
}
ipconfig0 = "ip=${var.k3s_server_1_config.ip},gw=${var.k3s_gateway}"
cicustom = "user=${var.snippets_storage}:snippets/cloud-init-k3s-server-1.yaml"
nameserver = join(" ", var.k3s_dns)

View file

@ -54,6 +54,17 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
bridge = var.k3s_network_bridge
}
disks {
scsi {
scsi0 {
disk {
storage = var.k3s_server_2_storage_pool
size = var.k3s_server_2_config.disk_size
}
}
}
}
ipconfig0 = "ip=${var.k3s_server_2_config.ip},gw=${var.k3s_gateway}"
cicustom = "user=${var.snippets_storage}:snippets/cloud-init-k3s-server-2.yaml"
nameserver = join(" ", var.k3s_dns)