Adding example of using the preserve_order flag
I couldn't really understand how to use this feature.... I might be dumb, didn't rtfm, I dunno. Here is a PR anyway to help clarify by example.
This commit is contained in:
parent
c4fab86752
commit
3706eef791
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue