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 \\",