diff --git a/data.tf b/data.tf index 29d2011..248a8e0 100644 --- a/data.tf +++ b/data.tf @@ -10,8 +10,3 @@ data "vsphere_compute_cluster" "cluster" { name = var.cluster_name datacenter_id = data.vsphere_datacenter.dc.id } - -data "vsphere_host" "host" { - name = "esxi101.bsdserver.lan" - datacenter_id = data.vsphere_datacenter.dc.id -} diff --git a/provider.tf b/provider.tf index 6442cb3..ecf6289 100644 --- a/provider.tf +++ b/provider.tf @@ -1,10 +1,14 @@ terraform { + required_version = ">= 1.0" + required_providers { vsphere = { - source = "vmware/vsphere" + source = "vmware/vsphere" + version = "~> 2.0" } vault = { - source = "hashicorp/vault" + source = "hashicorp/vault" + version = "~> 5.0" } } } diff --git a/variables.tf b/variables.tf index f8c79fb..b301dc8 100644 --- a/variables.tf +++ b/variables.tf @@ -55,36 +55,3 @@ variable "secret_id" { type = string sensitive = true } - -# Domain -variable "domain" { - description = "Domain name" - type = string - default = "" -} - -# ESXi Hosts -variable "esxi_hosts" { - description = "Map of ESXi hosts configuration" - type = map(object({ - name = string - ip_address = string - tags = optional(map(string), {}) - })) - default = {} -} - -# Port Groups -variable "port_groups" { - description = "Map of port groups configuration" - type = map(object({ - vlan_id = number - allow_promiscuous = optional(bool, false) - subnet_address = string - subnet_mask = number - gateway_ip = string - nameserver_id = number - hosts = list(string) - })) - default = {} -}