Hello Dalibor,
Are 2 things to take into consideration.
This is the overall simple answer, so apologies in advance if all this
is known and doesn't answer your question.
One is, Vagrant will load all the Vagrantfiles and follow this rule:
https://docs.vagrantup.com/v2/vagrantfile/index.html
<QUOTE>
Vagrant actually loads a series of Vagrantfiles, merging the settings
as it goes. This allows Vagrantfiles of varying level of specificity
to override prior settings. Vagrantfiles are loaded in the order shown
below. Note that if a Vagrantfile is not found at any step, Vagrant
continues with the next step.
Vagrantfile packaged with the box that is to be used for a given machine.
Vagrantfile in your Vagrant home directory (defaults to ~/.vagrant.d).
This lets you specify some defaults for your system user.
Vagrantfile from the project directory. This is the Vagrantfile that
you'll be modifying most of the time.
Multi-machine overrides if any.
Provider-specific overrides, if any.
At each level, settings set will be merged with previous values. What
this exactly means depends on the setting. For most settings, this
means that the newer setting overrides the older one.
</QUOTE>
So by default it should read and merge all the Vagrantfiles.
If your base box include other files, you can reference them like this:
include_vagrantfile = File.expand_path("../include/_Vagrantfile", __FILE__)
load include_vagrantfile if File.exist?(include_vagrantfile)
config.ssh.private_key_path = File.expand_path("../vagrant_rsa", __FILE__)
This came from this thread as example:
http://comments.gmane.org/gmane.comp.tools.vagrant/4813
Alvaro.
> --
> 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
vagrant-up+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.