website: clarify script args [GH-236]

This commit is contained in:
Mitchell Hashimoto 2015-04-22 09:03:38 +02:00
parent c58e09abaa
commit 5f4e2d9b27
1 changed files with 22 additions and 0 deletions

View File

@ -45,3 +45,25 @@ The following arguments are supported:
that will be copied to the remote resource and then executed. They are executed that will be copied to the remote resource and then executed. They are executed
in the order they are provided. This cannot be provided with `inline` or `script`. in the order they are provided. This cannot be provided with `inline` or `script`.
## Script Arguments
You cannot pass any arguments to scripts using the `script` or
`scripts` argumets to this provisioner. If you want to specify arguments,
upload the script with the
[file provisioner](/docs/provisioners/file.html)
and then use `inline` to call it. Example:
```
resource "aws_instance" "web" {
...
provisioner "file" {
source = "script.sh"
destination = "/tmp/script.sh"
}
provisioner "remote-exec" {
inline = ["/tmp/script.sh args"]
}
}
```