From 3706eef791ac4ebea8fd53a753f87b115b7b20c4 Mon Sep 17 00:00:00 2001 From: David Siefert Date: Wed, 11 May 2016 16:58:01 -0500 Subject: [PATCH] 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. --- website/source/docs/provisioning/basic_usage.html.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/website/source/docs/provisioning/basic_usage.html.md b/website/source/docs/provisioning/basic_usage.html.md index 9b3b615c5..5008d9531 100644 --- a/website/source/docs/provisioning/basic_usage.html.md +++ b/website/source/docs/provisioning/basic_usage.html.md @@ -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 +``` +