|
|
@@ -1,51 +1,119 @@ |
|
|
|
{ |
|
|
|
"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" |
|
|
|
] |
|
|
|
}] |
|
|
|
"builders": [ |
|
|
|
{ |
|
|
|
"type": "virtualbox-iso", |
|
|
|
"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 systemctl poweroff", |
|
|
|
"ssh_username": "demo", |
|
|
|
"ssh_password": "babelbox", |
|
|
|
"ssh_port": "22", |
|
|
|
"ssh_wait_timeout": "1800s", |
|
|
|
"vm_name": "babelbox-buster", |
|
|
|
"vboxmanage": [ |
|
|
|
[ |
|
|
|
"modifyvm", |
|
|
|
"{{.Name}}", |
|
|
|
"--memory", |
|
|
|
"1024" |
|
|
|
], |
|
|
|
[ |
|
|
|
"modifyvm", |
|
|
|
"{{.Name}}", |
|
|
|
"--cpus", |
|
|
|
"1" |
|
|
|
] |
|
|
|
], |
|
|
|
"output_directory": "babelbox-virtualbox" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "qemu", |
|
|
|
"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", |
|
|
|
"output_directory": "babelbox-qemu", |
|
|
|
"shutdown_command": "sudo systemctl poweroff", |
|
|
|
"disk_size": "10240M", |
|
|
|
"format": "qcow2", |
|
|
|
"accelerator": "kvm", |
|
|
|
"http_directory": "http-qemu", |
|
|
|
"ssh_username": "demo", |
|
|
|
"ssh_password": "babelbox", |
|
|
|
"ssh_timeout": "20m", |
|
|
|
"vm_name": "babelbox-buster", |
|
|
|
"net_device": "virtio-net", |
|
|
|
"disk_interface": "virtio", |
|
|
|
"disk_detect_zeroes": "on", |
|
|
|
"boot_wait": "10s", |
|
|
|
"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>" |
|
|
|
], |
|
|
|
"memory": "1024", |
|
|
|
"qemuargs": [ |
|
|
|
["-display", "sdl"] |
|
|
|
] |
|
|
|
} |
|
|
|
], |
|
|
|
"provisioners": [ |
|
|
|
{ |
|
|
|
"type": "shell", |
|
|
|
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'", |
|
|
|
"scripts": [ |
|
|
|
"scripts/babelbox-partitions.sh", |
|
|
|
"scripts/setup-babelbox.sh" |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "shell", |
|
|
|
"only": [ |
|
|
|
"virtualbox-iso" |
|
|
|
], |
|
|
|
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'", |
|
|
|
"scripts": [ |
|
|
|
"scripts/virtualbox.sh" |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "shell", |
|
|
|
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'", |
|
|
|
"scripts": [ |
|
|
|
"scripts/cleanup.sh", |
|
|
|
"scripts/minimize.sh" |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
|
} |