Skip to content

Instantly share code, notes, and snippets.

@epchris
Created October 2, 2014 15:10
Show Gist options
  • Save epchris/8acf86fd6af5e2287b53 to your computer and use it in GitHub Desktop.
Save epchris/8acf86fd6af5e2287b53 to your computer and use it in GitHub Desktop.
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos-65-64"
config.vm.hostname = "cmm.local.ourcentro.net"
config.vm.network "private_network", ip: "10.5.5.10"
config.ssh.forward_agent = "true"
if !ENV["LOCAL_VM_NO_SYNC"]
config.vm.synced_folder "./", "/data/cmm/current",
type: 'rsync',
rsync__exclude: ['.git/', '.vagrant/', '.\#*\#', '.\#*', '*~', 'docs/'],
owner: "centro",
group: "centro"
end
if Vagrant.has_plugin?("vagrant-gatling-rync")
config.gatling.latency = 2.5
config.gatling.time_format = "%H:%M:%S"
end
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "off"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment