Create resourcepool
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-03-03 10:50:59 +01:00
parent e56b23c414
commit 8e67d24e08
3 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,8 @@ data "vsphere_datacenter" "dc" {
}
data "vsphere_resource_pool" "pool" {
name = "/${var.hv_datacenter}/host/${var.hv_host}/Resources"
name = var.hv_resourcepool
// name = "/${var.hv_datacenter}/host/${var.hv_host}/Resources"
datacenter_id = data.vsphere_datacenter.dc.id
}

View File

@ -6,6 +6,7 @@ variable "hv_datacenter" {}
variable "hv_host" {}
variable "hv_hostip" {}
variable "hv_resourcepool" {}
variable "hv_datastore" {}
variable "hv_vmfolder" {}
variable "hv_network" {}

View File

@ -1,6 +1,7 @@
hv_fqdn = "bv11-vc.bessems.lan"
hv_username = "administrator@vsphere.local"
hv_datacenter = "DeSchakel"
hv_resourcepool = "Terraform"
hv_host = "bv11-esx.bessems.lan"
hv_hostip = "192.168.11.200"
hv_datastore = "Datastore05.NAS"