I could be misreading the documentation, but packer vagrant builder options I tried so far did not end up in producing desired result. All I am after is to have my custom Vagrantfile embedded into produced box.
I need it for obvious reasons to control some of the networking options. I could mandate for users to manually copy Vagrantfile before doing vagrant up, but the issue is I can’t rely on users following the process, so I’d like to enforce it at the box init by default.
I noticed after adding produced box there’s a file ~/.vagrant.d/boxes/analysis/0/vmware_desktop/include/_Vagrantfile that contains my custom config, but when I do vagrant init analysis && vagrant up I don’t see anything being merged and environment is initialized with default Vagrantfile resulting in undesired networking config.