Hi There, You can use this, for all the code that is the same:
This came from mitchellh: you can work around this at the moment by creating a home-directory Vagrantfile in ~/.vagrant.d/Vagrantfile and doing something like this: ENV["DEFAULT_BRIDGE"] ||= "foo" Then in your main project Vagrantfile: config.vm.network "public_network", bridge: ENV["DEFAULT_BRIDGE"] This lets you set it both as an env var and in the home Vagrantfile. with that, if the env DEFAULT_BRIDGE variable is defined, is used, ortherwiese will use the one in ~/.vagrant.d/Vagrantfile For Cluster, I am just on 2 node at the moment. However, have a look at this vagrant file: https://github.com/kikitux/packer-vagrant-oracle/blob/master/vagrant/rac/Vagrantfile and, looking for inspiration, i found this very cool Vagrantfile on github https://github.com/mross462/Vagrantfile/blob/master/Vagrantfile Hope this helps. Alvaro. On Thu, Feb 13, 2014 at 2:37 PM, Curtis <[email protected]> wrote: > Hi All, > > I have several multi-vm vagrant projects on my laptop. Is there such a > thing as a centralized Vagrantfile or configuration file that can configure > things such as the private network the vms boot on, or perhaps where the > vms should look for apt-cacher-ng or other proxies? Or should I just create > one vagrant file and configure vms based on the directory vagrant is > running from? > > I guess I just want to be able to setup private networks for each project > and caching for all but do it in one place. Anyone doing anything > interesting in that area? I'm having a hard time googling for more, > probably missing something obvious. > > Any thoughts would be greatly appreciated. :) > > Thanks, > Curtis. > > -- > Twitter: @serverascode > Blog: serverascode.com > > -- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
