From 58435b7dcac817ff6d93a76d0ab875a434f4d5dd Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 21 Jan 2015 16:22:10 +0100 Subject: [PATCH] Add a note to the "external script" section how to run existing scripts Closes-bug: #5228 --- website/docs/source/v2/provisioning/shell.html.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/website/docs/source/v2/provisioning/shell.html.md b/website/docs/source/v2/provisioning/shell.html.md index ffc9580c7..574289353 100644 --- a/website/docs/source/v2/provisioning/shell.html.md +++ b/website/docs/source/v2/provisioning/shell.html.md @@ -136,6 +136,15 @@ that the external path has the proper extension (".bat" or ".ps1"), because Windows uses this to determine what kind fo file it is to execute. If you exclude this extension, it likely won't work. +To run a script already available on the guest you have to use an inline script. + +```ruby +Vagrant.configure("2") do |config| + config.vm.provision "shell", + inline: "/path/to/the/script/on/the/guest" +end +``` + ## Script Arguments You can parameterize your scripts as well like any normal shell script.