diff --git a/packer/ubuntuserver20.04.pkr.hcl b/packer/ubuntuserver20.04.pkr.hcl index 1303db1..53e6961 100644 --- a/packer/ubuntuserver20.04.pkr.hcl +++ b/packer/ubuntuserver20.04.pkr.hcl @@ -11,6 +11,7 @@ source "vsphere-iso" "ubuntuserver" { vm_name = "${var.vm_guestos}-${var.vm_name}" datacenter = var.vsphere_datacenter + cluster = var.vsphere_cluster host = var.vsphere_host folder = var.vsphere_folder datastore = var.vsphere_datastore @@ -71,6 +72,7 @@ source "vsphere-iso" "ubuntuserver-baremetal" { vm_name = "${var.vm_guestos}-${var.vm_name}-baremetal" datacenter = var.vsphere_datacenter + cluster = var.vsphere_cluster host = var.vsphere_host folder = var.vsphere_folder datastore = var.vsphere_datastore diff --git a/packer/variables.pkr.hcl b/packer/variables.pkr.hcl index bfd272e..7248efe 100644 --- a/packer/variables.pkr.hcl +++ b/packer/variables.pkr.hcl @@ -6,6 +6,7 @@ variable "vsphere_password" { variable "vsphere_host" {} variable "vsphere_datacenter" {} +variable "vsphere_cluster" {} variable "vsphere_templatefolder" {} variable "vsphere_folder" {} diff --git a/packer/vsphere.auto.pkrvars.hcl b/packer/vsphere.auto.pkrvars.hcl index ae4dc67..64b67d2 100644 --- a/packer/vsphere.auto.pkrvars.hcl +++ b/packer/vsphere.auto.pkrvars.hcl @@ -1,6 +1,7 @@ vcenter_server = "bv11-vc.bessems.lan" vsphere_username = "administrator@vsphere.local" vsphere_datacenter = "DeSchakel" +vsphere_cluster = "Cluster.Legacy" vsphere_host = "bv11-esx.bessems.lan" vsphere_datastore = "ESX00.SSD01" vsphere_folder = "/Packer"