From 3728e076fec99a3e12be3f54496fce3e9486bf09 Mon Sep 17 00:00:00 2001 From: Hidekazu Tanaka Date: Wed, 30 Mar 2016 14:16:10 +0900 Subject: [PATCH] Fix SSH Agent Forwarding exmaple --- website/source/docs/provisioners/shell.html.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/website/source/docs/provisioners/shell.html.md b/website/source/docs/provisioners/shell.html.md index 4df9321d6..0f1ba10cb 100644 --- a/website/source/docs/provisioners/shell.html.md +++ b/website/source/docs/provisioners/shell.html.md @@ -88,8 +88,8 @@ Optional parameters: machine. By default this is remote_folder/remote_file, if set this option will override both remote_folder and remote_file. -- `skip_clean` (boolean) - If true, specifies that the helper scripts - uploaded to the system will not be removed by Packer. This defaults to +- `skip_clean` (boolean) - If true, specifies that the helper scripts + uploaded to the system will not be removed by Packer. This defaults to false (clean scripts from the system). - `start_retry_timeout` (string) - The amount of time to attempt to *start* @@ -192,9 +192,16 @@ provisioner](/docs/provisioners/file.html) (more secure) or using `ssh-keyscan` to populate the file (less secure). An example of the latter accessing github would be: -{ "type": "shell", "inline": \[ "sudo apt-get install -y git", "ssh-keyscan -github.com >> \~/.ssh/known\_hosts", "git clone -git@github.com:exampleorg/myprivaterepo.git" \] } +``` {.javascript} +{ + "type": "shell", + "inline": [ + "sudo apt-get install -y git", + "ssh-keyscan github.com >> ~/.ssh/known_hosts", + "git clone git@github.com:exampleorg/myprivaterepo.git" + ] +} +``` ## Troubleshooting