tfTemplate/terraform/vm/provider.tf

37 lines
848 B
HCL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"
}