Files
vms/sources/build.pkr.hcl
T
Greg HellingsandGitHub dea5487a3c Add virtualbox-iso target
Lots of other, small quality of life improvements to build process
Output of build serial console to artifacts upon failure
Reducing verbosity of Packer, now that serial output is captured
Fixed sizing problems with the boot partitions of Ubuntu versions
Use of Mac builders for Virtualbox targets
Updating Ubuntu builders to 22.04, as well
2022-06-08 01:39:37 -05:00

42 lines
849 B
HCL

build {
sources = [
"source.qemu.x86_64",
"source.virtualbox-iso.x86_64"
]
provisioner "ansible" {
playbook_file = "ansible/playbook.yml"
galaxy_file = "ansible/requirements.yml"
user = local.ssh.username
use_sftp = true
ansible_ssh_extra_args = [
"-o HostKeyAlgorithms=+ssh-rsa ",
"-o PubkeyAcceptedKeyTypes=+ssh-rsa ",
"-o IdentitiesOnly=yes"
]
}
provisioner "shell" {
scripts = [
"scripts/minimize.sh"
]
}
post-processors {
post-processor "vagrant" {
keep_input_artifact = true
compression_level = 9
output = "${local.name}.box"
vagrantfile_template = "vagrant/${var.arch}.rb"
}
post-processor "vagrant-cloud" {
name = "upload"
access_token = var.vagrant_cloud_token
box_tag = "boxen/${local.name}"
version = local.build
version_description = local.description
}
}
}