From 54b6f70ecf8a605da1d93e4ffcc477bdcb94563a Mon Sep 17 00:00:00 2001 From: ogrechko Date: Sun, 28 Dec 2025 07:23:50 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20terraform/variables.tf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- terraform/variables.tf | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/terraform/variables.tf b/terraform/variables.tf index d8263ee..58a80a4 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1 +1,27 @@ -2 \ No newline at end of file +variable "proxmox_api_url" { + type = string + default = "https://10.33.33.10:8006/api2/json" # ЗАМЕНИТЕ НА ВАШ IP Proxmox +} + +variable "proxmox_api_token_id" { + type = string + sensitive = true +} + +variable "proxmox_api_token_secret" { + type = string + sensitive = true +} + +variable "vm_nodes" { + type = map(object({ + id = number + ip = string + name = string + })) + default = { + "master" = { id = 201, ip = "10.33.33.201", name = "k8s-master" } + "worker1" = { id = 202, ip = "10.33.33.202", name = "k8s-worker-1" } + "worker2" = { id = 203, ip = "10.33.33.203", name = "k8s-worker-2" } + } +} \ No newline at end of file