Changeset View
Changeset View
Standalone View
Standalone View
packer/debian_buster.json
- This file was added.
{ | |||||
"variables": { | |||||
"DISK_SIZE": "20480", | |||||
"IMAGE_TIMESTAMP": "{{isotime \"20060102-1504\"}}", | |||||
"PACKER_BOX_NAME": "swh-debian-10.5-amd64-{{ user `IMAGE_TIMESTAMP` }}" | |||||
}, | |||||
"builders": [ | |||||
{ | |||||
"boot_command": [ | |||||
"<esc><wait>", | |||||
"install <wait>", | |||||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/buster-preseed.cfg <wait>", | |||||
"debian-installer=en_US.UTF-8 <wait>", | |||||
"auto <wait>", | |||||
"locale=en_US.UTF-8 <wait>", | |||||
"kbd-chooser/method=us <wait>", | |||||
"keyboard-configuration/xkb-keymap=us <wait>", | |||||
"netcfg/get_hostname={{ .Name }} <wait>", | |||||
"netcfg/get_domain=vagrantup.com <wait>", | |||||
"fb=false <wait>", | |||||
"debconf/frontend=noninteractive <wait>", | |||||
"console-setup/ask_detect=false <wait>", | |||||
"console-keymaps-at/keymap=us <wait>", | |||||
"grub-installer/bootdev=/dev/sda <wait>", | |||||
"<enter><wait>" | |||||
], | |||||
"boot_wait": "5s", | |||||
"headless": false, | |||||
"disk_size": "{{ user `DISK_SIZE` }}", | |||||
"guest_additions_mode": "upload", | |||||
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | |||||
"ssh_username": "vagrant", | |||||
"ssh_password": "vagrant", | |||||
"ssh_port": 22, | |||||
"ssh_wait_timeout": "1000s", | |||||
"type": "virtualbox-iso", | |||||
"guest_os_type": "Debian_64", | |||||
"virtualbox_version_file": ".vbox_version", | |||||
"output_directory": "output", | |||||
"http_directory": "http", | |||||
"iso_urls": [ | |||||
"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.5.0-amd64-netinst.iso" | |||||
], | |||||
"iso_checksum": "93863e17ac24eeaa347dfb91dddac654f214c189e0379d7c28664a306e0301e7", | |||||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | |||||
"vboxmanage": [ | |||||
[ "modifyvm", "{{.Name}}", "--memory", "2048" ], | |||||
[ "modifyvm", "{{.Name}}", "--cpus", "2" ] | |||||
], | |||||
"vm_name": "{{ user `PACKER_BOX_NAME` }}" | |||||
}], | |||||
"provisioners": [ | |||||
{ | |||||
"type": "shell", | |||||
"expect_disconnect": "true", | |||||
"execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'", | |||||
"scripts": [ | |||||
"scripts/post-install.sh" | |||||
] | |||||
} | |||||
], | |||||
"post-processors": [ | |||||
[ | |||||
{ | |||||
"type": "vagrant", | |||||
"compression_level": 9, | |||||
"output": "builds/{{ user `PACKER_BOX_NAME` }}.box" | |||||
} | |||||
] | |||||
] | |||||
} | |||||
No newline at end of file |