Skip to content

Instantly share code, notes, and snippets.

@rumkin
Last active January 3, 2016 21:19
Show Gist options
  • Save rumkin/8521223 to your computer and use it in GitHub Desktop.
Save rumkin/8521223 to your computer and use it in GitHub Desktop.
Default precise32 based vagrant box configuration
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Machine name
config.vm.define "boxname"
# Vagrant box
config.vm.box = "precise32"
# Box url
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
# Network port forwarding
config.vm.network :forwarded_port, guest: 80, host: 48888
# Share projects folder
config.vm.synced_folder "./projects", "/var/projects", mount_options: ["dmode=777", "fmode=777"]
# Box provision
config.vm.provision "shell", path: "./provision/install.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment