Skip to content

Instantly share code, notes, and snippets.

@davebiffuk
Created December 13, 2017 16:14
Show Gist options
  • Save davebiffuk/e851453621d97043ebf0bf315c15e3ab to your computer and use it in GitHub Desktop.
Save davebiffuk/e851453621d97043ebf0bf315c15e3ab to your computer and use it in GitHub Desktop.
Packer template to demonstrate broken "<wait2m>" behaviour
{
"builders": [
{
"type": "qemu",
"iso_url": "http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso",
"iso_checksum": "5a4b2588afd32e7024dd61d9558b77b03a4f3189cb4c9fc05e9e944fb780acdd",
"iso_checksum_type": "sha256",
"ssh_username": "root",
"ssh_password": "{{user `root_password`}}",
"accelerator": "none",
"output_directory": "/tmp/alpine-image",
"disk_size": 1000,
"boot_wait": "1m",
"boot_command": [
"<enter><wait>",
"root<enter>",
"<wait2m>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>"
],
"shutdown_command": "poweroff"
}
],
"min_packer_version": "0.9.0",
"provisioners": [
],
"variables": {
"root_password": "123",
"user_name": "alpine",
"user_password": "123",
"image_name": "alpine-img"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment