fix(fullpipe): Edge create ALB=false (неизменяемо), ALB/VS включаются только модификатором

This commit is contained in:
Repinoid
2026-09-22 19:05:55 +03:00
parent 307ef13a4e
commit 8b0228cfd1
2 changed files with 24 additions and 6 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ resource "nubes_vc_nsxt_network" "edge_net" {
# ⚠ Обязательно слать create-поля целиком: modify с null сбрасывает их в дефолт
# (иначе needEnableAVI упадёт в false после create=true).
qos_profile = var.nsxt_qos_profile
need_enable_avi = var.nsxt_need_enable_avi
virtual_services_count = var.nsxt_virtual_services_count
need_enable_avi = var.nsxt_network_need_enable_avi
virtual_services_count = var.nsxt_network_virtual_services_count
depends_on = [nubes_vc_org_ip_space.org_ips]
}
+22 -4
View File
@@ -74,14 +74,14 @@ variable "nsxt_vdc_type" {
variable "nsxt_need_enable_avi" {
type = bool
default = true
description = "Включить AVI Load Balancer (ALB) при создании Edge"
default = false
description = "Включить AVI Load Balancer (ALB) при создании Edge (неизменяемо после create)"
}
variable "nsxt_virtual_services_count" {
type = number
default = 3
description = "Кол-во виртуальных сервисов на AVI при создании Edge (1..4; Штурвал: ≥ 3)"
default = 1
description = "Кол-во виртуальных сервисов на AVI при создании Edge (1..4; неизменяемо после create)"
}
variable "nsxt_ip_addr_pool" {
@@ -108,6 +108,24 @@ variable "nsxt_qos_profile" {
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" {