Fix 'only' key references
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1e885beb45
commit
1e699d62a2
@ -160,20 +160,20 @@ build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
provisioner "powershell" {
|
provisioner "powershell" {
|
||||||
only = ["srv2019-v"]
|
only = ["vsphere-iso.srv2019-v"]
|
||||||
inline = [
|
inline = [
|
||||||
"New-Item -Path 'C:\\Payload\\Scripts' -ItemType 'Directory' -Force:$True -Confirm:$False"
|
"New-Item -Path 'C:\\Payload\\Scripts' -ItemType 'Directory' -Force:$True -Confirm:$False"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
only = ["srv2019-v"]
|
only = ["vsphere-iso.srv2019-v"]
|
||||||
destination = "C:\\Payload\\"
|
destination = "C:\\Payload\\"
|
||||||
source = "scripts/Server2019/payload/"
|
source = "scripts/Server2019/payload/"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "powershell" {
|
provisioner "powershell" {
|
||||||
only = ["srv2019-v"]
|
only = ["vsphere-iso.srv2019-v"]
|
||||||
scripts = [
|
scripts = [
|
||||||
"scripts/Server2019/Register-ScheduledTask.ps1"
|
"scripts/Server2019/Register-ScheduledTask.ps1"
|
||||||
]
|
]
|
||||||
@ -181,7 +181,7 @@ build {
|
|||||||
|
|
||||||
post-processors {
|
post-processors {
|
||||||
post-processor "vsphere" {
|
post-processor "vsphere" {
|
||||||
only = ["srv2019-t"]
|
only = ["vsphere-iso.srv2019-t"]
|
||||||
|
|
||||||
host = var.vcenter_server
|
host = var.vcenter_server
|
||||||
username = var.vsphere_username
|
username = var.vsphere_username
|
||||||
@ -200,7 +200,7 @@ build {
|
|||||||
overwrite = true
|
overwrite = true
|
||||||
}
|
}
|
||||||
post-processor "vsphere-template" {
|
post-processor "vsphere-template" {
|
||||||
only = ["srv2019-t"]
|
only = ["vsphere-iso.srv2019-t"]
|
||||||
|
|
||||||
host = var.vcenter_server
|
host = var.vcenter_server
|
||||||
username = var.vsphere_username
|
username = var.vsphere_username
|
||||||
@ -214,7 +214,7 @@ build {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
post-processor "shell-local" {
|
post-processor "shell-local" {
|
||||||
only = ["srv2019-v"]
|
only = ["vsphere-iso.srv2019-v"]
|
||||||
inline = [
|
inline = [
|
||||||
"pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\",
|
"pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\",
|
||||||
" -OVFFile '/scratch/srv2019-v/${var.vm_guestos}-${var.vm_name}-v.ovf' \\",
|
" -OVFFile '/scratch/srv2019-v/${var.vm_guestos}-${var.vm_name}-v.ovf' \\",
|
||||||
|
Loading…
Reference in New Issue
Block a user