Last active
December 14, 2015 04:49
-
-
Save rafaelrosafu/5031408 to your computer and use it in GitHub Desktop.
Vagrant config template
This file contains 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
# -*- 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