Merge pull request #7308 from davidsiefert/patch-1

Adding example of using the preserve_order flag
This commit is contained in:
Seth Vargo 2016-05-29 00:54:09 -04:00
commit 34777fb575
1 changed files with 9 additions and 1 deletions

View File

@ -206,4 +206,12 @@ end
```
If you want to preserve the original ordering, you can specify
the `preserve_order: true` flag.
the `preserve_order: true` flag:
```ruby
Vagrant.configure("2") do |config|
config.vm.provision "do-this", type: "shell", preserve_order: true, inline: "echo FIRST!"
config.vm.provision "then-this", type: "shell", preserve_order: true, inline: "echo SECOND!"
end
```