Closed breuerss closed 9 years ago
Hi!
This is expected, since config.trigger.before :provision
is supposed to fire the trigger only before the vagrant provision
command.
For your use case, using the built-in provisioner should be a perfect fit:
Vagrant.configure("2") do |config|
# Your existing Vagrant configuration
...
config.vm.provision "trigger", :option => "value" do |trigger|
trigger.fire do
run "script"
end
end
end
The following Vagrantfile does not create the expected tmp/file.txt in the working directory on first startup using version 0.5.0.
Best regards