I have a specific Vagrantfile for a lucid32 box that installs some pretty standard packages (PHP/MySQL/Apache), does some specific port forwarding and so on, I set it up, checkout a project from git and change some server configurations, I want to package this box for other developers on the team to use, so I use the command:
vagrant package boxname --output test.box --vagrantfile Vagrantfile
I get a test.box file, it notes in the packaging that it's adding my specific Vagrantfile, then I run:
vagrant box add boxname test.box
It appears in vagrant box list
just fine, now when I create some test directory, and do vagrant init boxname
followed by vagrant up
and then it provisions that box with the files from the checkout and everything, but does not setup the proper port forwarding,
and is in fact not using my Vagrantfile I packaged it with at all, but generated a new default one in that directory.
I noticed in ~/.vagrant.d/boxes/boxname it has the default Vagrantfile, along with the one I packaged in includes/_Vagrantfile
Is there any way I can get the specific Vagrantfile to be the one generated when I do vagrant init boxname
?