Skip to content

Instantly share code, notes, and snippets.

@Veraticus
Created April 22, 2014 18:45
Show Gist options
  • Save Veraticus/11190039 to your computer and use it in GitHub Desktop.
Save Veraticus/11190039 to your computer and use it in GitHub Desktop.
# -*- 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|
config.vm.box = ENV['VAGRANT_BOX'] || 'centos'
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box"
config.vm.network :forwarded_port, host: 8080, guest: 80
config.vm.network :forwarded_port, host: 8443, guest: 443
# From https://github.com/mitchellh/vagrant/issues/1004
config.vm.synced_folder ".", "/vagrant", :disabled => true
# From https://github.com/mitchellh/vagrant/issues/1807
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment