-
Notifications
You must be signed in to change notification settings - Fork 35
Another example to add please #21
Comments
Hi! That's an interesting use case! Let me think a moment how it can be implemented... 😉 |
Hi, I'm interesting in this possibility or implementation too... Thanks |
Hi, I have the exact same requirement. Specifically, I want to run jpetazzo/pipework to create additional network interfaces. After vagrant halt && vagrant up, they are gone, thus it would be great if I could recreate them as soon as possible (i.e. before the puppet provisioner runs). It seems currently not possible to trigger something to run
Thanks, |
+1 |
Starting from version 0.5.0, just released, triggers could be run as a provisioner too: config.vm.provision "trigger", :option => "value" do |trigger|
trigger.fire do
run "script"
end
end |
how is this different from 'shell' provisioner? |
@pablocrivella shell provisioner runs only on the guest, this one could run both on the host and the guest. |
aaah hehe right! 😅 thanks @emyl |
Hi @emyl . Thanks for the awesome plugin. It's really very helpful.
I'm not a Ruby guy, so like a lot of other people here, examples are good. In my specific situation, writing a
config.trigger.before :provision
block only triggers when I runvagrant provision
. I'd really like that block to hit when I run any ofvagrant provision
vagrant up --provision
vagrant up
when the provision step us runconfig.vm.provision
block is set torun: "always"
Is there something straight-forward I can do to make this happen?
The text was updated successfully, but these errors were encountered: