mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-03-01 09:00:15 +01:00
61 lines
1.8 KiB
JSON
61 lines
1.8 KiB
JSON
{
|
|
"builders": [
|
|
{
|
|
"boot_command": [
|
|
"<esc><wait>",
|
|
"auto ",
|
|
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
|
|
"<enter>"
|
|
],
|
|
"boot_wait": "5s",
|
|
"disk_size": "16384",
|
|
"guest_os_type": "Debian_64",
|
|
"headless": false,
|
|
"http_directory": "http",
|
|
"iso_checksum": "{{ user `iso_checksum_type` }}:{{ user `iso_checksum` }}",
|
|
"iso_url": "{{ user `iso_url` }}",
|
|
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_timeout": "30m",
|
|
"ssh_username": "vagrant",
|
|
"type": "virtualbox-iso",
|
|
"vboxmanage": [
|
|
["modifyvm", "{{.Name}}", "--memory", "1024"],
|
|
["modifyvm", "{{.Name}}", "--cpus", "1"]
|
|
],
|
|
"vm_name": "raspiblitz-amd64"
|
|
}
|
|
],
|
|
"post-processors": [
|
|
{
|
|
"compression_level": "8",
|
|
"output": "output/raspiblitz.box",
|
|
"type": "vagrant"
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/init.sh",
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"execute_command": "echo 'yes' | {{.Vars}} bash '{{.Path}}' {{ user `branch` }} {{ user `github_user` }} /dev/sda1 false false",
|
|
"script": "../../../build_sdcard.sh",
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/cleanup.sh",
|
|
"type": "shell"
|
|
}
|
|
],
|
|
"variables": {
|
|
"branch": "dev",
|
|
"github_user": "raspiblitz",
|
|
"iso_checksum": "23ab444503069d9ef681e3028016250289a33cc7bab079259b73100daee0af66",
|
|
"iso_checksum_type": "sha256",
|
|
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.2.0-amd64-netinst.iso"
|
|
}
|
|
}
|