Book Image

Creating Development Environments with Vagrant

By : MICHAEL KEITH PEACOCK
Book Image

Creating Development Environments with Vagrant

By: MICHAEL KEITH PEACOCK

Overview of this book

Table of Contents (17 chapters)
Creating Development Environments with Vagrant Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 rerun provisioning on a VM using the vagrant provision command.

  • We can also add --no-provision to the up command to instruct Vagrant to not run the provisioning tools when performing the up action, for example, vagrant up --no-provision.

  • By default, Vagrant will only provision when it first boots a machine. For subsequent boots of an existing machine, Vagrant knows that the machines are configured, and it will not provision them. We can override this with the --provision option, for example, vagrant up --provision.

  • We can also provision with just a specific provisioner should we wish, for example, if we want to instruct Vagrant to just run Puppet in standalone...