2020-03-18 18:46:47 -04:00
|
|
|
Parameters common to all provisioners:
|
|
|
|
|
|
|
|
- `pause_before` (duration) - Sleep for duration before execution.
|
|
|
|
|
2020-04-16 05:58:54 -04:00
|
|
|
- `max_retries` (int) - Max times the provisioner will retry in case of failure. Defaults to zero (0). Zero means an error will not be retried.
|
|
|
|
|
2020-03-18 18:46:47 -04:00
|
|
|
- `only` (array of string) - Only run the provisioner for listed builder(s)
|
|
|
|
by name.
|
|
|
|
|
|
|
|
- `override` (object) - Override the builder with different settings for a
|
|
|
|
specific builder, eg :
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "script.sh",
|
|
|
|
"override": {
|
|
|
|
"vmware-iso": {
|
|
|
|
"execute_command": "echo 'password' | sudo -S bash {{.Path}}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
- `timeout` (duration) - If the provisioner takes more than for example
|
|
|
|
`1h10m1s` or `10m` to finish, the provisioner will timeout and fail.
|