diff --git a/main-infra.tf b/main-infra.tf index 3910198..575a545 100644 --- a/main-infra.tf +++ b/main-infra.tf @@ -68,12 +68,6 @@ resource "hcloud_server_network" "control" { } # Worker / Agent Nodes - -variable "worker_count" { - type = number - default = 3 -} - resource "hcloud_server" "worker" { count = var.worker_count diff --git a/variables.tf b/variables.tf index d558345..9efeef6 100644 --- a/variables.tf +++ b/variables.tf @@ -1,10 +1,16 @@ -# Environement +# Environment variable "name" { - description = "Name of the environement" + description = "Name of the environment" type = string default = "dev" } +variable "worker_count" { + description = "Number of worker for the environment" + type = number + default = 1 +} + # Hetzner Cloud variable "hcloud_token" { description = "Hetzner Cloud API token" @@ -12,24 +18,24 @@ variable "hcloud_token" { sensitive = true } variable "hcloud_server_type" { - description = "Hetzner Cloud Server Type used for the environement" + description = "Hetzner Cloud Server Type used for the environment" type = string default = "cpx21" } variable "hcloud_location" { - description = "Hetzner Cloud Location used for the environement" + description = "Hetzner Cloud Location used for the environment" type = string default = "fsn1" } variable "hcloud_image" { - description = "Hetzner Cloud Image used for the environement" + description = "Hetzner Cloud Image used for the environment" type = string default = "ubuntu-24.04" } # K3S variable "k3s_channel" { - description = "k3S channel used for the environement" + description = "k3S channel used for the environment" type = string default = "stable" }