Files
tf_provider/DEV_STAND/FullPipe/variables.tf
T

142 lines
4.1 KiB
Terraform

variable "api_token" {
type = string
sensitive = true
description = "API-токен Nubes"
}
variable "api_endpoint" {
type = string
default = "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc"
description = "API Gateway URL"
}
# Имя (display_name, напр. "kontora") ИЛИ UUID организации из ЛК
variable "organization" {
type = string
description = "Имя или UUID организации (vc_org)"
}
variable "vdc_resource_name" {
type = string
default = "fullpipe-vdc"
description = "Имя VDC"
}
variable "vdc_network_provider" {
type = string
default = null
description = "Сетевой провайдер. Заполнить значением из текущей страницы ЛК"
}
variable "vdc_provider_vdc" {
type = string
default = null
description = "Provider VDC. Заполнить значением из текущей страницы ЛК"
}
variable "vdc_cpu_allocated" {
type = number
default = 8
description = "vCPU (шт.)"
}
variable "vdc_cpu_guaranteed" {
type = number
default = 0
description = "Резервирование vCPU (%, допустимо: 0, 50, 80)"
}
variable "vdc_mem_allocated" {
type = number
default = 32
description = "RAM (GB)"
}
variable "vdc_storage_config" {
type = string
default = "[{\"name\":\"SATA\",\"size\":\"200\"}]"
description = "Дисковое хранилище (JSON-массив, size в GB). Имя политики должно существовать в ресурсном пуле (например, SATA, SSD)"
}
# --- vc_nsxt (Сетевой шлюз периметра / Edge) ---
variable "nsxt_resource_name" {
type = string
default = "fullpipe-edge"
description = "Имя Edge (vc_nsxt)"
}
variable "nsxt_vdc_type" {
type = string
default = "vdc"
description = "Тип родительской услуги: vdc или vdcGroup"
}
variable "nsxt_need_enable_avi" {
type = bool
default = false
description = "Включить AVI Load Balancer (ALB) при создании Edge (неизменяемо после create)"
}
variable "nsxt_virtual_services_count" {
type = number
default = 1
description = "Кол-во виртуальных сервисов на AVI при создании Edge (1..4; неизменяемо после create)"
}
variable "nsxt_ip_addr_pool" {
type = string
default = "10.10.102.0/24"
description = "Адресный пул routed-сети (маска /24 обязательна)"
}
variable "nsxt_main_dns" {
type = string
default = "81.22.46.22"
description = "Основной DNS"
}
variable "nsxt_second_dns" {
type = string
default = "185.247.187.77"
description = "Второй DNS"
}
variable "nsxt_qos_profile" {
type = string
default = "QoS-100Mbit"
description = "Профиль пропускной способности Edge"
}
variable "nsxt_qos_profile" {
type = string
default = "QoS-100Mbit"
description = "Профиль пропускной способности Edge"
}
variable "nsxt_network_need_enable_avi" {
type = bool
default = true
description = "Включить ALB через modify Edge (Штурвал: true)"
}
variable "nsxt_network_virtual_services_count" {
type = number
default = 3
description = "Кол-во VS на AVI через modify Edge (Штурвал: ≥ 3)"
}
# --- vc_org (Организация в Cloud Director) — модификатор ip_space ---
variable "org_ip_space_name" {
type = string
default = "internet-ipv4-v1"
description = "Имя ipSpace организации для выделения внешних IP (значение из ЛК)"
}
variable "org_ip_count" {
type = number
default = 3
description = "Кол-во выделяемых внешних IP организации (для Штурвала суммарно 3)"
}