Обновить terraform/vmware/variables.tf
This commit is contained in:
@@ -1,74 +1,21 @@
|
|||||||
# --- Подключение к vCenter ---
|
# --- Скрытые переменные (из Environment Semaphore) ---
|
||||||
variable "vsphere_user" {
|
variable "vsphere_user" { type = string, sensitive = true }
|
||||||
type = string
|
variable "vsphere_password" { type = string, sensitive = true }
|
||||||
description = "Пользователь vCenter (user@domain.local)"
|
variable "vsphere_server" { type = string }
|
||||||
sensitive = true
|
variable "admin_password" { type = string, sensitive = true }
|
||||||
}
|
|
||||||
|
|
||||||
variable "vsphere_password" {
|
variable "vsphere_datacenter" { type = string }
|
||||||
type = string
|
variable "vsphere_network" { type = string }
|
||||||
description = "Пароль vCenter"
|
variable "vm_template" { type = string }
|
||||||
sensitive = true
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "vsphere_server" {
|
# --- Переменные из Формы (Survey) в Semaphore ---
|
||||||
type = string
|
variable "vm_name" { type = string }
|
||||||
description = "Адрес vCenter сервера (IP или FQDN)"
|
variable "vsphere_cluster" { type = string }
|
||||||
}
|
variable "vsphere_datastore" { type = string }
|
||||||
|
variable "vm_cpu" { type = number }
|
||||||
# --- Инфраструктура ---
|
variable "vm_ram" { type = number }
|
||||||
variable "vsphere_datacenter" {
|
variable "vm_disk_size" { type = number }
|
||||||
type = string
|
variable "vm_ip" { type = string }
|
||||||
description = "Имя Датацентра в vSphere"
|
variable "vm_netmask" { type = number }
|
||||||
}
|
variable "vm_gateway" { type = string }
|
||||||
|
variable "primary_dns" { type = string }
|
||||||
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
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user