Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (74 sloc) 2.2 KB
{
"variables": {
"core": 1,
"memory": 512,
"disk_size": 10140,
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso",
"iso_md5": "0b31bccccb048d20b551f70830bb7ad0",
"vm_name": "debian-770-wheezy"
},
"builders": [
{
"boot_command": [
"<esc><wait>",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=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>",
"keyboard-configuration/xkb-keymap=us <wait>",
"<enter><wait>"
],
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "Debian_64",
"headless": true,
"http_directory": "http",
"iso_checksum": "{{user `iso_md5`}}",
"iso_checksum_type": "md5",
"iso_url": "{{user `iso_url`}}",
"shutdown_command": "echo 'halt -p' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_port": "{{user `ssh_port`}}",
"ssh_wait_timeout": "{{user `ssh_wait_timeout`}}",
"type": "virtualbox-iso",
"vm_name": "{{user `vm_name`}}",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
["modifyvm", "{{.Name}}", "--cpus", "{{user `core`}}"]
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "{{user `vm_name`}}.box"
}
],
"provisioners": [
{
"type": "shell",
"pause_before": "5s",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"override": {
"virtualbox-iso": {
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/cleanup.sh"
]
}
}
}
]
}