Running Ruby During Provisioning

14 views
Skip to first unread message

James Carr

unread,
Dec 28, 2015, 11:53:47 AM12/28/15
to Vagrant
Hey All,

I have a snippet of ruby in my Vagrantfile that works well but is dependent on some provisioning taking place first using the vagant-host-shell provisioner. Is there someway to force a snippet to only execute once a provisioning step is complete? If place it in the file sequentially then it'll happen first thing before provisioning takes place.


Thanks!
James

Alvaro Miranda Aguilera

unread,
Dec 29, 2015, 2:05:10 AM12/29/15
to vagra...@googlegroups.com
Hello,

Have a look at the plugin vagrant-trigger.

It does have several stages and seems to allow the level of control you are after.

Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/83c7f7bd-8cb8-4520-8f00-4ec667c2afae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages