refactor: org as variable, not managed resource
This commit is contained in:
@@ -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" {
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user