91 lines
2.6 KiB
JSON
Executable File
91 lines
2.6 KiB
JSON
Executable File
{
|
|
"variables": {
|
|
"version": ""
|
|
},
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/ansible.sh"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/setup.sh"
|
|
},
|
|
{
|
|
"type": "ansible-local",
|
|
"playbook_file": "./shared/main.yml",
|
|
"galaxy_file": "./shared/requirements.yml"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/cleanup.sh"
|
|
}
|
|
],
|
|
"builders": [
|
|
{
|
|
"type": "virtualbox-iso",
|
|
"boot_command": [
|
|
"<esc><wait>",
|
|
"install <wait>",
|
|
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/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",
|
|
"disk_size": 81920,
|
|
"guest_os_type": "Debian_64",
|
|
"headless": true,
|
|
"http_directory": "http",
|
|
"iso_urls": [
|
|
"debian-13.3.0-amd64-netinst.iso",
|
|
"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-13.3.0-amd64-netinst.iso"
|
|
],
|
|
"iso_checksum": "sha512:1ada40e4c938528dd8e6b9c88c19b978a0f8e2a6757b9cf634987012d37ec98503ebf3e05acbae9be4c0ec00b52e8852106de1bda93a2399d125facea45400f8",
|
|
"ssh_username": "vagrant",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_wait_timeout": "1800s",
|
|
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
|
|
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
|
|
"virtualbox_version_file": ".vbox_version",
|
|
"vm_name": "packer-debian-13-amd64",
|
|
"vboxmanage": [
|
|
[
|
|
"modifyvm",
|
|
"{{.Name}}",
|
|
"--memory",
|
|
"1024"
|
|
],
|
|
[
|
|
"modifyvm",
|
|
"{{.Name}}",
|
|
"--cpus",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
],
|
|
"post-processors": [
|
|
[
|
|
{
|
|
"output": "builds/{{.Provider}}-debian13.box",
|
|
"type": "vagrant"
|
|
}
|
|
]
|
|
]
|
|
}
|