Skip to content

Instantly share code, notes, and snippets.

@feniix
Created January 28, 2015 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feniix/a3d7b6a4d225594ff4ef to your computer and use it in GitHub Desktop.
Save feniix/a3d7b6a4d225594ff4ef to your computer and use it in GitHub Desktop.
{
"variables": {
"precise_iso_url": "http://ubuntu.osuosl.org/releases/12.04.5/ubuntu-12.04.5-server-amd64.iso",
"precise_iso_checksum": "769474248a3897f4865817446f9a4a53",
"vbox_guest_additions_url": "http://dlc-cdn.sun.com/virtualbox/4.3.20/VBoxGuestAdditions_4.3.20.iso",
"vbox_guest_additions_sha256": "9ab48f44ac26a6deb374cb5fe6bad103bbf4fdf5186140e2d40ebe48bd01f3ea",
"user_home": "{{ env `HOME` }}",
"precise_box_ovf": "{{ env `HOME` }}/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-precise64/12.04.4/virtualbox/box.ovf"
},
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "{{ user `precise_box_ovf` }}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "30s",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"guest_additions_url": "{{ user `vbox_guest_additions_url` }}",
"guest_additions_sha256": "{{ user `vbox_guest_additions_sha256` }}",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso"
}
],
"post-processors": [
{
"only": [
"virtualbox-ovf"
],
"type": "vagrant"
}
],
"provisioners": [
{
"override": {
"virtualbox-ovf": {
"execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'"
}
},
"scripts": [
"scripts/os-detect-setup.sh",
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/reboot.sh"
],
"type": "shell"
},
{
"override": {
"virtualbox-ovf": {
"execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'"
}
},
"scripts": [
"scripts/virtualbox.sh",
"scripts/cleanup.sh"
],
"pause_before": "60s",
"type": "shell"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment