From a855240c6d484f1930092e3ccd3a92ede3f5ad7e Mon Sep 17 00:00:00 2001 From: Tellsanguis Date: Fri, 7 Nov 2025 11:24:29 +0100 Subject: [PATCH] fix(terraform): Ajout configurations VMs manquantes dans exemple tfvars Added VM configuration objects for all three nodes: - k3s_server_1_config: 6 cores, 12GB RAM, 100G disk - k3s_server_2_config: 6 cores, 12GB RAM, 100G disk - etcd_witness_config: 2 cores, 2GB RAM, 20G disk Removed undeclared 'management_bridge' variable that was causing warnings in terraform plan. This allows terraform plan to execute successfully in CI with the example configuration file. --- terraform/terraform.tfvars.example | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/terraform/terraform.tfvars.example b/terraform/terraform.tfvars.example index 6534a31..d101d07 100644 --- a/terraform/terraform.tfvars.example +++ b/terraform/terraform.tfvars.example @@ -23,6 +23,27 @@ snippets_storage = "local" # Network k3s_network_bridge = "k3s" -management_bridge = "vmbr0" k3s_gateway = "10.100.20.1" k3s_dns = ["10.100.20.1", "1.1.1.1"] + +# VM Configurations +k3s_server_1_config = { + ip = "10.100.20.10/24" + cores = 6 + memory = 12288 + disk_size = "100G" +} + +k3s_server_2_config = { + ip = "10.100.20.20/24" + cores = 6 + memory = 12288 + disk_size = "100G" +} + +etcd_witness_config = { + ip = "10.100.20.30/24" + cores = 2 + memory = 2048 + disk_size = "20G" +}