refactor: org as variable, not managed resource

This commit is contained in:
“Naeel”
2026-07-09 08:46:03 +04:00
parent b0f07d4f0f
commit a883d9ce38
2 changed files with 4 additions and 9 deletions
+2 -3
View File
@@ -12,10 +12,9 @@ variable "api_token" {
sensitive = true sensitive = true
description = "Nubes API token" description = "Nubes API token"
} }
variable "realm" { variable "org_uid" {
type = string type = string
sensitive = true description = "UUID существующей организации vCloud Director (из ЛК)"
description = "resource_realm parameter for nubes_vc_org resource"
} }
provider "nubes" { provider "nubes" {
+2 -6
View File
@@ -1,6 +1,2 @@
resource "nubes_vc_org" "org" { # vcOrg — НЕ управляется Terraform, используется существующая организация
resource_name = "NaeelOrg" # org_uid задаётся в terraform.tfvars
resource_realm = var.realm
v_i_p_configure = jsonencode([{ name = "internet-ipv4-v1", count = "10" }])
adopt_existing_on_create = true
}