2013-09-03 18:08:28 +00:00
|
|
|
---
|
2016-01-19 18:08:53 +00:00
|
|
|
layout: "docs"
|
2013-09-06 16:50:43 +00:00
|
|
|
page_title: "vagrant provision - Command-Line Interface"
|
2013-09-03 18:08:28 +00:00
|
|
|
sidebar_current: "cli-provision"
|
2016-01-19 18:08:53 +00:00
|
|
|
description: |-
|
|
|
|
The "vagrant provision" command is used to run any provisioners configured
|
|
|
|
for the guest machine, such as Puppet, Chef, Ansible, Salt, or Shell.
|
2013-09-03 18:08:28 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Provision
|
|
|
|
|
|
|
|
**Command: `vagrant provision`**
|
|
|
|
|
2016-01-19 18:08:53 +00:00
|
|
|
Runs any configured [provisioners](/docs/provisioning/)
|
2013-09-03 18:08:28 +00:00
|
|
|
against the running Vagrant managed machine.
|
|
|
|
|
|
|
|
This command is a great way to quickly test any provisioners, and is especially
|
|
|
|
useful for incremental development of shell scripts, Chef cookbooks, or Puppet
|
|
|
|
modules. You can just make simple modifications to the provisioning scripts
|
|
|
|
on your machine, run a `vagrant provision`, and check for the desired results.
|
|
|
|
Rinse and repeat.
|
|
|
|
|
|
|
|
# Options
|
|
|
|
|
|
|
|
* `--provision-with x,y,z` - This will only run the given provisioners. For
|
|
|
|
example, if you have a `:shell` and `:chef_solo` provisioner and run
|
|
|
|
`vagrant provision --provision-with shell`, only the shell provisioner will
|
|
|
|
be run.
|