fix(terraform): Utiliser disks block pour cloner correctement le template Ubuntu
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Failing after 6s
CD - Deploy Infrastructure / Deploy on pve1 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve2 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve3 (push) Has been skipped
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Failing after 6s
CD - Deploy Infrastructure / Deploy on pve1 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve2 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve3 (push) Has been skipped
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
- Remplacer disk{} par disks{scsi{}} pour activer le clonage
- Le disk{} créait un disque vide au lieu de cloner le template
- Résout le problème 'No bootable device' en clonant correctement les partitions
This commit is contained in:
parent
21e83d793b
commit
4c277c7594
2 changed files with 24 additions and 12 deletions
|
|
@ -54,12 +54,18 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
|
|||
bridge = var.k3s_network_bridge
|
||||
}
|
||||
|
||||
disk {
|
||||
slot = "scsi0"
|
||||
size = var.k3s_server_1_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.k3s_server_1_storage_pool
|
||||
iothread = true
|
||||
# Le disque est cloné automatiquement depuis le template
|
||||
# Pas de disk block pour éviter de créer un disque vide
|
||||
disks {
|
||||
scsi {
|
||||
scsi0 {
|
||||
disk {
|
||||
size = var.k3s_server_1_config.disk_size
|
||||
storage = var.k3s_server_1_storage_pool
|
||||
iothread = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ipconfig0 = "ip=${var.k3s_server_1_config.ip},gw=${var.k3s_gateway}"
|
||||
|
|
|
|||
|
|
@ -54,12 +54,18 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
|
|||
bridge = var.k3s_network_bridge
|
||||
}
|
||||
|
||||
disk {
|
||||
slot = "scsi0"
|
||||
size = var.k3s_server_2_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.k3s_server_2_storage_pool
|
||||
iothread = true
|
||||
# Le disque est cloné automatiquement depuis le template
|
||||
# Pas de disk block pour éviter de créer un disque vide
|
||||
disks {
|
||||
scsi {
|
||||
scsi0 {
|
||||
disk {
|
||||
size = var.k3s_server_2_config.disk_size
|
||||
storage = var.k3s_server_2_storage_pool
|
||||
iothread = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ipconfig0 = "ip=${var.k3s_server_2_config.ip},gw=${var.k3s_gateway}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue