Skip to content

Instantly share code, notes, and snippets.

@rafaelrosafu
Last active December 14, 2015 04:49
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 rafaelrosafu/5031408 to your computer and use it in GitHub Desktop.
Save rafaelrosafu/5031408 to your computer and use it in GitHub Desktop.
Vagrant config template
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
# precise-cloudimage is an official Ubuntu image at http://cloud-images.ubuntu.com/vagrant/
# install the box before with:
# vagrant box add precise-cloudimage http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
config.vm.box = "precise-cloudimage"
config.vm.customize [
"modifyvm", :id, "--memory", "1536"
]
# Hostname
config.vm.host_name = "test.example.org"
# Host only networking, required for NFS share
config.vm.network :hostonly, "10.42.0.2"
# Share project folder as NFS
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment