Created
October 31, 2013 23:45
-
-
Save ymek/7259023 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "provisioners": [ | |
| { | |
| "type": "shell", | |
| "scripts": [ | |
| "scripts/base.sh", | |
| "scripts/chef.sh", | |
| "scripts/virtualbox.sh", | |
| "scripts/vagrant.sh", | |
| "scripts/cleanup.sh", | |
| "scripts/zerodisk.sh" | |
| ], | |
| "override": { | |
| "virtualbox": { | |
| "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'" | |
| } | |
| } | |
| } | |
| ], | |
| "builders": [ | |
| { | |
| "type": "virtualbox", | |
| "boot_command": [ | |
| "<esc><esc><enter><wait>", | |
| "/install/vmlinuz noapic preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>", | |
| "debian-installer=en_US auto locale=en_US kbd-chooser/method=us <wait>", | |
| "hostname={{ .Name }} <wait>", | |
| "fb=false debconf/frontend=noninteractive <wait>", | |
| "keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=us keyboard-configuration/variant=us console-setup/ask_detect=false <wait>", | |
| "initrd=/install/initrd.gz -- <enter><wait>" | |
| ], | |
| "boot_wait": "4s", | |
| "disk_size": 10140, | |
| "guest_os_type": "Ubuntu_64", | |
| "http_directory": "http", | |
| "iso_checksum": "2cbe868812a871242cdcdd8f2fd6feb9", | |
| "iso_checksum_type": "md5", | |
| "iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.3-server-amd64.iso", | |
| "ssh_username": "vagrant", | |
| "ssh_password": "vagrant", | |
| "ssh_port": 22, | |
| "ssh_wait_timeout": "10000s", | |
| "shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S bash 'shutdown.sh'", | |
| "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | |
| "virtualbox_version_file": ".vbox_version", | |
| "vboxmanage": [ | |
| [ | |
| "modifyvm", | |
| "{{.Name}}", | |
| "--memory", | |
| "2048" | |
| ], | |
| [ | |
| "modifyvm", | |
| "{{.Name}}", | |
| "--cpus", | |
| "2" | |
| ] | |
| ] | |
| } | |
| ], | |
| "post-processors": [ | |
| { | |
| "type": "vagrant", | |
| "keep_input_artifact": true | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment