Skip to content

Tips and Tricks

Robert Auer edited this page Aug 25, 2016 · 3 revisions

.vagrant.rb

With the .vagrant.rb file placed in the root of the ecosystem repository, it is possible to change nearly everything which was defined in the Vagrantfile. This is useful for settings which are machine or developer related e.g.:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# use device eth0 for the public network, 
# this eliminates the question for the device on vagrant up
config.vm.networks.each do |n|
	n[1][:bridge] = "eth0"
end

# increase memory and cpus
config.vm.provider "virtualbox" do |v|
	v.memory = 8192
	v.cpus = 2
	# use linked clones to speedup generation of new vagrant boxes,
	# the feature is available with vagrant version >= 1.8
	v.linked_clone = true
end

Clone this wiki locally