From 1e699d62a293eb8ad7f109f79fd5dffaa86a89ed Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 7 Jun 2021 15:42:14 +0200 Subject: [PATCH] Fix 'only' key references --- packer/windowsserver2019.pkr.hcl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packer/windowsserver2019.pkr.hcl b/packer/windowsserver2019.pkr.hcl index d6dedea..0c7d9a0 100644 --- a/packer/windowsserver2019.pkr.hcl +++ b/packer/windowsserver2019.pkr.hcl @@ -160,20 +160,20 @@ build { } provisioner "powershell" { - only = ["srv2019-v"] + only = ["vsphere-iso.srv2019-v"] inline = [ "New-Item -Path 'C:\\Payload\\Scripts' -ItemType 'Directory' -Force:$True -Confirm:$False" ] } provisioner "file" { - only = ["srv2019-v"] + only = ["vsphere-iso.srv2019-v"] destination = "C:\\Payload\\" source = "scripts/Server2019/payload/" } provisioner "powershell" { - only = ["srv2019-v"] + only = ["vsphere-iso.srv2019-v"] scripts = [ "scripts/Server2019/Register-ScheduledTask.ps1" ] @@ -181,7 +181,7 @@ build { post-processors { post-processor "vsphere" { - only = ["srv2019-t"] + only = ["vsphere-iso.srv2019-t"] host = var.vcenter_server username = var.vsphere_username @@ -200,7 +200,7 @@ build { overwrite = true } post-processor "vsphere-template" { - only = ["srv2019-t"] + only = ["vsphere-iso.srv2019-t"] host = var.vcenter_server username = var.vsphere_username @@ -214,7 +214,7 @@ build { } } post-processor "shell-local" { - only = ["srv2019-v"] + only = ["vsphere-iso.srv2019-v"] inline = [ "pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\", " -OVFFile '/scratch/srv2019-v/${var.vm_guestos}-${var.vm_name}-v.ovf' \\",