Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Update documentation for one-time provision and add startup script #2310

regilero opened this Issue Oct 3, 2013 · 7 comments


None yet
6 participants

regilero commented Oct 3, 2013

Since 1.3.0 and following #1776 provisioning is done only once.

Documentation is stating: "Provisioners are run in three cases: vagrant up, vagrant reload, and vagrant provision." Documentation should reflect the fact this is only done on first vagrant up.

Now a lot of scripts could be done assuming provision is done every time, and maybe simply theses are not "provisions" tasks but they should always be run after vagrant bootstrap.

As an example I need to start some services after the external NFS volumes are mounted by vagrant, and I cannot use the upstart or initd services for that.

So having something like final-script-run-after-every-vagrant-up-or-reload would be usefull.
Currently I use an awfull hack in Vagrantfile to remove the provision marker (and avoid enforcing usage of --provision for every command)

    if File.exist?("#{File.dirname(__FILE__)}/.vagrant/machines/default/virtualbox/action_provision")
      # hack: remove this "provision-is-done" marker

igreg commented Oct 3, 2013



mitchellh commented Oct 5, 2013

Thanks, tagged as a doc change.

the-noob commented Oct 8, 2013

+1 add startup script

tigerxp commented Oct 10, 2013

+1 for startup script

@mitchellh could you also tag it as feature request for the startup script?

@btobolaski btobolaski referenced this issue in openfcci/vagrant-drupal-cms Oct 11, 2013


Apache fails to start on boot #1

I've made a plugin that will run a command (or commands), vagrant-mountcommand. Its a little bit rough right now, but most likely it will do the trick for you.


mitchellh commented Nov 27, 2013

The docs have been updated with this in the last commit. Thanks!

@mitchellh mitchellh closed this Nov 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment