doc: добавление документации по созданию вм через tf

This commit is contained in:
2026-02-03 14:13:51 +03:00
parent db37cf8832
commit 6a3fc83246
19 changed files with 864 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
terraform {
required_providers {
vcd = {
source = "vmware/vcd"
version = "3.14.1"
}
random = {
source = "hashicorp/random"
version = "3.5.1"
}
local = {
source = "hashicorp/local"
version = "2.5.1"
}
}
}
# Почему такая конфигурация не будет работать
# https://github.com/hashicorp/terraform/issues/24476
#
# Но решили тут
# https://github.com/opentofu/opentofu/issues/2123
provider "vcd" {
alias = "al"
for_each = var.vcds
user = var.vmware_username
password = var.vmware_password
org = each.value.org
vdc = each.value.vdc
url = each.value.url
max_retry_timeout = "10"
allow_unverified_ssl = "true"
}