当我运行“terraform plan”时出现此错误错误:设置新 vSphere SOAP 客户端时出错:后拨号 tcp:i/o 超时
在 modules/control_plane_resources/main.tf 第 2 行,在提供者“vsphere”中:2:提供者“vsphere”{
当我运行“terraform plan”时出现此错误错误:设置新 vSphere SOAP 客户端时出错:后拨号 tcp:i/o 超时
在 modules/control_plane_resources/main.tf 第 2 行,在提供者“vsphere”中:2:提供者“vsphere”{
问题很可能是您提供给 Vsphere 客户端的 url 不正确。我有完全相同的问题,这就是原因。例如,我的 provider.tf 文件看起来像这样:
provider "vsphere" {
user = var.vsphere_user
password = var.vsphere_password
vsphere_server = var.vsphere_server_uri
# If you have a self-signed cert
allow_unverified_ssl = true
}
我的 tfvars 文件有这个值:
vsphere_server_uri = "vra@domain.local"
它应该是这样的:
vsphere_server_uri = "vsphere@domain.local"