Ajout des disques cloud-init dans la configuration Terraform
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 17s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 30s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 27s
CD - Deploy Infrastructure / Deploy on pve3 (push) Failing after 42s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s

This commit is contained in:
Tellsanguis 2025-12-09 13:15:51 +01:00
parent 3b5f1fc2d2
commit 104df8d174
3 changed files with 18 additions and 0 deletions

View file

@ -54,6 +54,12 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
iothread = true
}
disk {
slot = "ide2"
type = "cloudinit"
storage = var.k3s_server_1_storage_pool
}
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,12 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
iothread = true
}
disk {
slot = "ide2"
type = "cloudinit"
storage = var.k3s_server_2_storage_pool
}
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)

View file

@ -54,6 +54,12 @@ resource "proxmox_vm_qemu" "etcd_witness" {
iothread = true
}
disk {
slot = "ide2"
type = "cloudinit"
storage = var.etcd_witness_storage_pool
}
ipconfig0 = "ip=${var.etcd_witness_config.ip},gw=${var.k3s_gateway}"
cicustom = "user=${var.snippets_storage}:snippets/cloud-init-etcd-witness.yaml"
nameserver = join(" ", var.k3s_dns)