Overriding vagrant settings
This tip courtesy of my colleague Dwayne Litzenberger.
Vagrant is a great tool. My only gripe with it is that it forces everyone to share the same vm settings, which can be painful, especially when you have a slow computer. It seems there’s a ~/.vagrant.d
directory for specifying overrides but it’s run before Vagrantfile
, which makes it useless to override variables defined in Vagrantfile
.
There’s a variety of methods for doing this but the cleanest way is adding the following lines of code to the end of your Vagrantfile
:
This code loads everything under Vagrantfile.local.d/ and Vagrantfile.local
. For instance, my Vagrantfile.local
contains: