From b6eb50517d987c85979ba4b09dd2f653281a725f Mon Sep 17 00:00:00 2001 From: ogrechko Date: Fri, 5 Dec 2025 12:40:45 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20terraform/vmware/variables.tf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- terraform/vmware/variables.tf | 74 +++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 terraform/vmware/variables.tf diff --git a/terraform/vmware/variables.tf b/terraform/vmware/variables.tf new file mode 100644 index 0000000..4d1196f --- /dev/null +++ b/terraform/vmware/variables.tf @@ -0,0 +1,74 @@ +# --- Подключение к vCenter --- +variable "vsphere_user" { + type = string + description = "Пользователь vCenter (user@domain.local)" + sensitive = true +} + +variable "vsphere_password" { + type = string + description = "Пароль vCenter" + sensitive = true +} + +variable "vsphere_server" { + type = string + description = "Адрес vCenter сервера (IP или FQDN)" +} + +# --- Инфраструктура --- +variable "vsphere_datacenter" { + type = string + description = "Имя Датацентра в vSphere" +} + +variable "vsphere_cluster" { + type = string + description = "Имя кластера или хоста" +} + +variable "vsphere_datastore" { + type = string + description = "Имя Datastore для дисков" +} + +variable "vsphere_network" { + type = string + description = "Имя сети (Port Group)" +} + +# --- Параметры ВМ --- +variable "vm_template" { + type = string + description = "Имя шаблона (Template) из которого клонируем" +} + +variable "vm_name_prefix" { + type = string + description = "Префикс имени новой ВМ (будет добавлена цифра)" + default = "terraform-vm" +} + +variable "vm_count" { + type = number + description = "Количество создаваемых машин" + default = 1 +} + +variable "vm_cpu" { + type = number + description = "Количество vCPU" + default = 2 +} + +variable "vm_ram" { + type = number + description = "Объем RAM в МБ" + default = 4096 +} + +variable "vm_disk_size" { + type = number + description = "Размер диска в ГБ (должен быть >= размера диска в шаблоне)" + default = 50 +} \ No newline at end of file