2014-10-20 22:39:26 +02:00
|
|
|
{
|
2020-03-01 22:54:32 +01:00
|
|
|
"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",
|
2025-02-28 20:12:38 +01:00
|
|
|
"iso_checksum": "sha256:1257373c706d8c07e6917942736a865dfff557d21d76ea3040bb1039eb72a054",
|
|
|
|
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso",
|
|
|
|
"output_directory": "babelbox-virtualbox",
|
2020-03-01 22:54:32 +01:00
|
|
|
"shutdown_command": "sudo systemctl poweroff",
|
|
|
|
"ssh_password": "babelbox",
|
|
|
|
"ssh_port": "22",
|
2025-02-28 20:12:38 +01:00
|
|
|
"ssh_timeout": "1800s",
|
|
|
|
"ssh_username": "demo",
|
|
|
|
"type": "virtualbox-iso",
|
2020-03-01 22:54:32 +01:00
|
|
|
"vboxmanage": [
|
|
|
|
[
|
|
|
|
"modifyvm",
|
|
|
|
"{{.Name}}",
|
|
|
|
"--memory",
|
|
|
|
"1024"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"modifyvm",
|
|
|
|
"{{.Name}}",
|
|
|
|
"--cpus",
|
|
|
|
"1"
|
|
|
|
]
|
|
|
|
],
|
2025-02-28 20:12:38 +01:00
|
|
|
"vm_name": "babelbox-bookworm"
|
2020-03-01 22:54:32 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"accelerator": "kvm",
|
|
|
|
"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>"
|
|
|
|
],
|
2025-02-28 20:12:38 +01:00
|
|
|
"boot_wait": "10s",
|
|
|
|
"disk_detect_zeroes": "on",
|
|
|
|
"disk_interface": "virtio",
|
|
|
|
"disk_size": "10240M",
|
|
|
|
"format": "qcow2",
|
|
|
|
"http_directory": "http-qemu",
|
|
|
|
"iso_checksum": "sha256:1257373c706d8c07e6917942736a865dfff557d21d76ea3040bb1039eb72a054",
|
|
|
|
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso",
|
2020-03-01 22:54:32 +01:00
|
|
|
"memory": "1024",
|
2025-02-28 20:12:38 +01:00
|
|
|
"net_device": "virtio-net",
|
|
|
|
"output_directory": "babelbox-qemu",
|
2020-03-01 22:54:32 +01:00
|
|
|
"qemuargs": [
|
2025-02-28 20:12:38 +01:00
|
|
|
[
|
|
|
|
"-display",
|
|
|
|
"sdl"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"shutdown_command": "sudo systemctl poweroff",
|
|
|
|
"ssh_password": "babelbox",
|
|
|
|
"ssh_timeout": "20m",
|
|
|
|
"ssh_username": "demo",
|
|
|
|
"type": "qemu",
|
|
|
|
"vm_name": "babelbox-bookworm"
|
2020-03-01 22:54:32 +01:00
|
|
|
}
|
|
|
|
],
|
2025-02-28 20:12:38 +01:00
|
|
|
"description": "Debian Babelbox",
|
2020-03-01 22:54:32 +01:00
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
|
|
|
"scripts": [
|
|
|
|
"scripts/babelbox-partitions.sh",
|
|
|
|
"scripts/setup-babelbox.sh"
|
2025-02-28 20:12:38 +01:00
|
|
|
],
|
|
|
|
"type": "shell"
|
2020-03-01 22:54:32 +01:00
|
|
|
},
|
|
|
|
{
|
2025-02-28 20:12:38 +01:00
|
|
|
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
2020-03-01 22:54:32 +01:00
|
|
|
"only": [
|
|
|
|
"virtualbox-iso"
|
|
|
|
],
|
|
|
|
"scripts": [
|
|
|
|
"scripts/virtualbox.sh"
|
2025-02-28 20:12:38 +01:00
|
|
|
],
|
|
|
|
"type": "shell"
|
2020-03-01 22:54:32 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
|
|
|
"scripts": [
|
|
|
|
"scripts/cleanup.sh",
|
|
|
|
"scripts/minimize.sh"
|
2025-02-28 20:12:38 +01:00
|
|
|
],
|
|
|
|
"type": "shell"
|
2020-03-01 22:54:32 +01:00
|
|
|
}
|
|
|
|
]
|
2014-10-20 22:39:26 +02:00
|
|
|
}
|
2025-02-28 20:12:38 +01:00
|
|
|
|