O'Reilly logo

Creating Development Environments with Vagrant by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Overriding provisioning via the command line

There may be instances where we want to restrict or enforce the execution of provisioning or even a specific provisioner within a project. The following commands are all executed from the host machine:

  • We can cancel a running provision by pressing CMD + C at the terminal
  • We can instruct Vagrant to re-run provisioning on a VM by using the vagrant provision command
  • We can also add no-provision to the up and reload commands to instruct Vagrant to not run the provisioning tools when performing the up and reload actions
  • We can also provision with just a specific provisioner should we wish, for example, if we wanted to instruct Vagrant to just run Puppet in a standalone mode (in a project which has multiple provisioners ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required