From 349b5ab5f31e212bf6c2b8cb2875257620dc4592 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Thu, 27 Jun 2013 14:42:28 +0200 Subject: [PATCH] website: docuemnt shell provisioner environment variables --- .../source/docs/provisioners/shell.html.markdown | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/website/source/docs/provisioners/shell.html.markdown b/website/source/docs/provisioners/shell.html.markdown index 8ffb5d303..534508e9c 100644 --- a/website/source/docs/provisioners/shell.html.markdown +++ b/website/source/docs/provisioners/shell.html.markdown @@ -47,11 +47,16 @@ Exactly _one_ of the following is required: Optional parameters: * `execute_command` (string) - The command to use to execute the script. - By default this is `sh {{ .Path }}`. The value of this is treated as a - [configuration template](/docs/templates/configuration-templates.html). - The only available variable in it is `Path` which is the path to the - script to run. + By default this is `{{ .Vars }} sh {{ .Path }}`. The value of this is + treated as [configuration template](/docs/templates/configuration- + templates.html). There are two available variables: `Path`, which is + the path to the script to run, and `Vars`, which is the list of + `environment_vars`, if configured. * `remote_path` (string) - The path where the script will be uploaded to in the machine. This defaults to "/tmp/script.sh". This value must be a writable location and any parent directories must already exist. + +* `environment_vars` (array of strings) - An array of key/value pairs + to inject prior to the execute_command. The format should be + `key=value`.