Is your feature request related to a problem? Please describe.
Build-magic settings can be set at execution time for command runners, except for the vagrant runner. Setting the working directory is handled by adding a prefix to the macro for vagrant, but some settings, such as setting the bind directory can only be set in the Vagrantfile.
Describe the solution you'd like
Before running vagrant_up, read the Vagrantfile and modify the in-memory copy by adding a custom build_magic provisioner. It should be something like:
config.vm.provision "build_magic" do |build|
build.vm.provision "shell", inline: "export HELLO=world"
end
Describe alternatives you've considered
It might also be possible to set these through ssh-config.
Acceptance Criteria:
Be able to reliably provision a VM by setting the sync folder (bind directory), the working directory, and setting environment variables.
Be able to reliably bootstrap the provision on top of other provisioning already in the Vagrantfile (shell, chef, ansible, etc).
Be able to reliably add the provisioning at the end of all other provisioning already in the Vagrantfile.
Is your feature request related to a problem? Please describe. Build-magic settings can be set at execution time for command runners, except for the vagrant runner. Setting the working directory is handled by adding a prefix to the macro for vagrant, but some settings, such as setting the bind directory can only be set in the Vagrantfile.
Describe the solution you'd like Before running vagrant_up, read the Vagrantfile and modify the in-memory copy by adding a custom build_magic provisioner. It should be something like:
Describe alternatives you've considered It might also be possible to set these through ssh-config.
Acceptance Criteria: