From e5880c222e81269cad25eea573f46c056134f191 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Thu, 17 Jun 2021 11:35:48 +0200 Subject: [PATCH] Fix source names for only keys --- packer/ubuntuserver20.04.pkr.hcl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packer/ubuntuserver20.04.pkr.hcl b/packer/ubuntuserver20.04.pkr.hcl index cc659ec..9adc05e 100644 --- a/packer/ubuntuserver20.04.pkr.hcl +++ b/packer/ubuntuserver20.04.pkr.hcl @@ -131,7 +131,7 @@ build { ] provisioner "ansible" { - only = ["source.vsphere-iso.ubuntuserver"] + only = ["vsphere-iso.ubuntuserver"] playbook_file = "ansible/playbook.yml" user = "ubuntu" @@ -145,7 +145,7 @@ build { } post-processor "shell-local" { - only = ["source.vsphere0iso.ubuntuserver"] + only = ["vsphere-iso.ubuntuserver"] inline = [ "pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\", " -OVFFile '/scratch/ubuntuserver/${var.vm_guestos}-${var.vm_name}.ovf' \\", @@ -158,11 +158,11 @@ build { ] } post-processor "shell-local" { - only = ["source.vsphere0iso.ubuntuserver-baremetal"] + only = ["vsphere-iso.ubuntuserver-baremetal"] inline = [ "ls /scratch/ubuntuserver-baremetal -lash", "qemu-img convert -f vmdk -o raw \\", - " /scratch/ubuntuserver-baremetal/${var.vm_guestos}-${var.vm_name}-disk001.vmdk \\", + " /scratch/ubuntuserver-baremetal/${var.vm_guestos}-${var.vm_name}-disk-0.vmdk \\", " /scratch/ubuntuserver-baremetal/${var.vm_guestos}-${var.vm_name}.raw", "ls /scratch/ubuntuserver-baremetal -lash", "gzip -c \\",