Attempt to properly match build w/ source #3
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
3f2f19b36a
commit
a4db841a7a
@ -6,18 +6,20 @@ packer {
|
|||||||
build {
|
build {
|
||||||
source "vsphere-iso.ubuntu" {
|
source "vsphere-iso.ubuntu" {
|
||||||
name = "bootstrap"
|
name = "bootstrap"
|
||||||
vm_name = "${var.vm_name}-bootstrap"
|
vm_name = "ova.bootstrap-${var.vm_name}"
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
images = false
|
||||||
output_directory = "/scratch/airgapped-k8s/bootstrap"
|
output_directory = "/scratch/airgapped-k8s/bootstrap"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
source "vsphere-iso.ubuntu" {
|
source "vsphere-iso.ubuntu" {
|
||||||
name = "upgrade"
|
name = "upgrade"
|
||||||
vm_name = "${var.vm_name}-upgrade"
|
vm_name = "ova.upgrade-${var.vm_name}"
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
images = false
|
||||||
output_directory = "/scratch/airgapped-k8s/upgrade"
|
output_directory = "/scratch/airgapped-k8s/upgrade"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -44,11 +46,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}/${var.vm_name}-${source.name}.ovf' \"",
|
" -OVFFile '/scratch/airgapped-k8s/${source.name}/ova.${source.name}-${var.vm_name}.ovf' \"",
|
||||||
"pwsh -file scripts/Update-Manifest.ps1 \\",
|
"pwsh -file scripts/Update-Manifest.ps1 \\",
|
||||||
" -ManifestFileName '/scratch/airgapped-k8s/${source.name}/${var.vm_name}-${source.name}.mf'",
|
" -ManifestFileName '/scratch/airgapped-k8s/${source.name}/ova.${source.name}-${var.vm_name}.mf'",
|
||||||
"ovftool --acceptAllEulas --allowExtraConfig --overwrite \\",
|
"ovftool --acceptAllEulas --allowExtraConfig --overwrite \\",
|
||||||
" '/scratch/airgapped-k8s/${source.name}/${var.vm_name}-${source.name}.ovf' \\",
|
" '/scratch/airgapped-k8s/${source.name}/ova.${source.name}-${var.vm_name}.ovf' \\",
|
||||||
" /output/airgapped-k8s.${source.name}.ova"
|
" /output/airgapped-k8s.${source.name}.ova"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -53,8 +53,4 @@ source "vsphere-iso" "ubuntu" {
|
|||||||
shutdown_timeout = "5m"
|
shutdown_timeout = "5m"
|
||||||
|
|
||||||
remove_cdrom = true
|
remove_cdrom = true
|
||||||
|
|
||||||
export {
|
|
||||||
images = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user