52 lines
1.6 KiB
JSON
52 lines
1.6 KiB
JSON
{
|
|
"description": "Debian Babelbox",
|
|
"builders": [{
|
|
"boot_command": [
|
|
"<esc><wait>",
|
|
"install <wait>",
|
|
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
|
|
"debian-installer/locale=en_US <wait>",
|
|
"auto <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_64",
|
|
"hard_drive_interface": "sata",
|
|
"headless": false,
|
|
"http_directory": "http",
|
|
"iso_checksum": "6a901b5abe43d88b39d627e1339d15507cc38f980036b928f835e0f0e957d3d8",
|
|
"iso_checksum_type": "sha256",
|
|
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-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-buster",
|
|
"vboxmanage": [
|
|
["modifyvm", "{{.Name}}", "--memory", "1024"],
|
|
["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"
|
|
]
|
|
}]
|
|
}
|