Fix SSH Agent Forwarding exmaple

pull/3554/head
Hidekazu Tanaka 10 years ago committed by Chris Bednarski
parent b7bff9d251
commit 3728e076fe

@ -88,8 +88,8 @@ Optional parameters:
machine. By default this is remote_folder/remote_file, if set this option will machine. By default this is remote_folder/remote_file, if set this option will
override both remote_folder and remote_file. override both remote_folder and remote_file.
- `skip_clean` (boolean) - If true, specifies that the helper scripts - `skip_clean` (boolean) - If true, specifies that the helper scripts
uploaded to the system will not be removed by Packer. This defaults to uploaded to the system will not be removed by Packer. This defaults to
false (clean scripts from the system). false (clean scripts from the system).
- `start_retry_timeout` (string) - The amount of time to attempt to *start* - `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 to populate the file (less secure). An example of the latter accessing github
would be: would be:
{ "type": "shell", "inline": \[ "sudo apt-get install -y git", "ssh-keyscan ``` {.javascript}
github.com >> \~/.ssh/known\_hosts", "git clone {
git@github.com:exampleorg/myprivaterepo.git" \] } "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 ## Troubleshooting

Loading…
Cancel
Save