diff --git a/main.tf b/main.tf index 1a1812b..cd65b8d 100644 --- a/main.tf +++ b/main.tf @@ -27,6 +27,12 @@ variable "vcpu_count" { default = 2 } +variable "talos_version" { + description = "The version of Talos to use" + type = string + default = "v1.11.1" +} + # Configure providers provider "talos" {} @@ -39,7 +45,7 @@ data "talos_machine_configuration" "this" { cluster_endpoint = "https://10.5.0.2:6443" machine_type = "controlplane" machine_secrets = talos_machine_secrets.this.machine_secrets - talos_version = "v1.11.1" + talos_version = var.talos_version } data "talos_client_configuration" "this" { @@ -59,8 +65,8 @@ resource "null_resource" "talos_cluster" { provisioner "local-exec" { command = <