Commit 349b5ab5 authored by Jack Pearkes's avatar Jack Pearkes

website: docuemnt shell provisioner environment variables

parent e9d8e9f5
...@@ -47,11 +47,16 @@ Exactly _one_ of the following is required: ...@@ -47,11 +47,16 @@ Exactly _one_ of the following is required:
Optional parameters: Optional parameters:
* `execute_command` (string) - The command to use to execute the script. * `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 By default this is `{{ .Vars }} sh {{ .Path }}`. The value of this is
[configuration template](/docs/templates/configuration-templates.html). treated as [configuration template](/docs/templates/configuration-
The only available variable in it is `Path` which is the path to the templates.html). There are two available variables: `Path`, which is
script to run. 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 * `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 in the machine. This defaults to "/tmp/script.sh". This value must be
a writable location and any parent directories must already exist. 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`.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment