HashiCorp Packer build configuration for Babelbox (Debian Installer Demo) VMs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
babelbox-packer/debian-babelbox.json

53 lines
1.7 KiB

{
"description": "Debian Babelbox",
"builders": [{
"boot_command": [
"<esc><wait>",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=de <wait>",
"netcfg/get_hostname={{ .Name }} <wait>",
"netcfg/get_domain=demo.local <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=de <wait>",
"keyboard-configuration/xkb-keymap=de <wait>",
"<enter><wait>"
],
"disk_size": 10240,
"guest_os_type": "Debian",
"hard_drive_interface": "sata",
"headless": false,
"http_directory": "http",
"iso_checksum": "f270d1ffa0f9472464bfc0fffa7ac3ddc89abb5786eb02454f26e49f143b01d6",
"iso_checksum_type": "sha256",
"iso_url": "http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-8.3.0-i386-netinst.iso",
"shutdown_command": "sudo /sbin/halt -p",
"ssh_username": "demo",
"ssh_password": "babelbox",
"ssh_port": "22",
"ssh_wait_timeout": "1800s",
"type": "virtualbox-iso",
"vm_name": "babelbox-jessie",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
],
"output_directory": "babelbox"
}],
"provisioners": [{
"type": "shell",
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
"scripts": [
"scripts/babelbox-partitions.sh",
"scripts/setup-babelbox.sh",
"scripts/virtualbox.sh",
"scripts/cleanup.sh",
"scripts/minimize.sh"
]
}]
}