cmmorrow / build-magic

A general purpose build/install/deploy tool.
MIT License
9 stars 2 forks source link

Add build-magic Vagrant provisioner to Vagrantfiles #76

Closed cmmorrow closed 2 years ago

cmmorrow commented 2 years ago

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: