refactor: edge as variable, add edge_uid
This commit is contained in:
@@ -20,6 +20,10 @@ variable "vdc_uid" {
|
||||
type = string
|
||||
description = "UUID существующего vDC (из ЛК)"
|
||||
}
|
||||
variable "edge_uid" {
|
||||
type = string
|
||||
description = "UUID существующего Edge Gateway (из ЛК)"
|
||||
}
|
||||
|
||||
provider "nubes" {
|
||||
api_token = var.api_token
|
||||
|
||||
@@ -1,10 +1,2 @@
|
||||
# ===== vcOrg и vcVdc — существующие, НЕ управляются Terraform =====
|
||||
# org_uid и vdc_uid задаются в terraform.tfvars
|
||||
|
||||
# ===== vcNsxt (Edge Gateway) =====
|
||||
resource "nubes_vc_nsxt" "edge" {
|
||||
resource_name = "kc-edge-tf"
|
||||
vdc_uid = var.vdc_uid
|
||||
need_enable_a_v_i = true
|
||||
virtual_services_count = 4
|
||||
}
|
||||
# ===== vcOrg, vcVdc, vcNsxt — существующие, НЕ управляются Terraform =====
|
||||
# org_uid, vdc_uid, edge_uid задаются в terraform.tfvars
|
||||
|
||||
Reference in New Issue
Block a user