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 theup
command to instruct Vagrant to not run the provisioning tools when performing theup
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...