emyl / vagrant-triggers

Allow the definition of arbitrary scripts that will run on the host before and/or after Vagrant commands.
MIT License
546 stars 35 forks source link

Run Cookbooks On Up? #38

Closed bassrock closed 9 years ago

bassrock commented 9 years ago

Hi,

I was curious if it is possible to run specific cookbooks on a vagrant up. These would be tasks that are required to run every time a machine is brought up, not just on a provision.

emyl commented 9 years ago

Hi!

Not sure if this plugin is the best choice for what you want to achieve, probably you should use two different provision blocks and play with the run: always option. Here some docs:

https://docs.vagrantup.com/v2/provisioning/basic_usage.html