Fix post-processor paths
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
610495e424
commit
1941e02d94
@ -7,21 +7,11 @@ build {
|
|||||||
source "vsphere-iso.ubuntu" {
|
source "vsphere-iso.ubuntu" {
|
||||||
name = "bootstrap"
|
name = "bootstrap"
|
||||||
vm_name = "bld_${var.vm_name}_bootstrap"
|
vm_name = "bld_${var.vm_name}_bootstrap"
|
||||||
|
|
||||||
export {
|
|
||||||
images = false
|
|
||||||
output_directory = "/scratch/airgapped-k8s/bootstrap"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
source "vsphere-iso.ubuntu" {
|
source "vsphere-iso.ubuntu" {
|
||||||
name = "upgrade"
|
name = "upgrade"
|
||||||
vm_name = "bld_${var.vm_name}_upgrade"
|
vm_name = "bld_${var.vm_name}_upgrade"
|
||||||
|
|
||||||
export {
|
|
||||||
images = false
|
|
||||||
output_directory = "/scratch/airgapped-k8s/upgrade"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "ansible" {
|
provisioner "ansible" {
|
||||||
@ -50,11 +40,11 @@ build {
|
|||||||
inline = [
|
inline = [
|
||||||
"pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\",
|
"pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\",
|
||||||
" -ApplianceType '${source.name}' \\",
|
" -ApplianceType '${source.name}' \\",
|
||||||
" -OVFFile '/scratch/airgapped-k8s/${source.name}/ova.${source.name}-${var.vm_name}.ovf' \"",
|
" -OVFFile '/scratch/bld_${var.vm_name}_${source.name}.ovf' \"",
|
||||||
"pwsh -file scripts/Update-Manifest.ps1 \\",
|
"pwsh -file scripts/Update-Manifest.ps1 \\",
|
||||||
" -ManifestFileName '/scratch/airgapped-k8s/${source.name}/ova.${source.name}-${var.vm_name}.mf'",
|
" -ManifestFileName '/scratch/bld_${var.vm_name}_${source.name}.mf'",
|
||||||
"ovftool --acceptAllEulas --allowExtraConfig --overwrite \\",
|
"ovftool --acceptAllEulas --allowExtraConfig --overwrite \\",
|
||||||
" '/scratch/airgapped-k8s/${source.name}/ova.${source.name}-${var.vm_name}.ovf' \\",
|
" '/scratch/bld_${var.vm_name}_${source.name}.ovf' \\",
|
||||||
" /output/airgapped-k8s-${var.k8s_version}.${source.name}.ova"
|
" /output/airgapped-k8s-${var.k8s_version}.${source.name}.ova"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -53,4 +53,9 @@ source "vsphere-iso" "ubuntu" {
|
|||||||
shutdown_timeout = "5m"
|
shutdown_timeout = "5m"
|
||||||
|
|
||||||
remove_cdrom = true
|
remove_cdrom = true
|
||||||
|
|
||||||
|
export {
|
||||||
|
images = false
|
||||||
|
output_directory = "/scratch"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user