github.com/aspring/packer@v0.8.1-0.20150629211158-9db281ac0f89/website/source/docs/provisioners/shell-local.html.md (about) 1 --- 2 layout: "docs" 3 page_title: "Local Shell Provisioner" 4 description: |- 5 The shell Packer provisioner provisions machines built by Packer using shell scripts. Shell provisioning is the easiest way to get software installed and configured on a machine. 6 --- 7 8 # Local Shell Provisioner 9 10 Type: `shell-local` 11 12 The local shell provisioner executes a local shell script on the machine 13 running Packer. The [remote shell](/docs/provisioners/shell.html) 14 provisioner executes shell scripts on a remote machine. 15 16 ## Basic Example 17 18 The example below is fully functional. 19 20 ```javascript 21 { 22 "type": "shell-local", 23 "command": "echo foo" 24 } 25 ``` 26 27 ## Configuration Reference 28 29 The reference of available configuration options is listed below. The only 30 required element is "command". 31 32 Required: 33 34 * `command` (string) - The command to execute. This will be executed 35 within the context of a shell as specified by `execute_command`. 36 37 Optional parameters: 38 39 * `execute_command` (array of strings) - The command to use to execute the script. 40 By default this is `["/bin/sh", "-c", "{{.Command}"]`. The value is an array 41 of arguments executed directly by the OS. 42 The value of this is 43 treated as [configuration template](/docs/templates/configuration-templates.html). 44 The only available variable is `Command` which is the command to execute. 45