remote-exec-hook
4ops/remote-exec-hook/null
Terraform module
Remote exec hook Executes script file or commands list on remote server if watch value changed. Requirements | Name | Version | |------|---------| | terraform | >= 0.13 | | null | ~> 3.0.0 | Providers | Name | Version | |------|---------| | null | ~> 3.0.0 | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | ssh\_host | Required: hostname for SSH connection. | string | n/a | yes | | ssh\_private\_key | Required: private key for SSH authentication. | string | n/a | yes | | commands | Inline commands. | list(string) | [] | no | | on\_host\_changed | Execute script if SSH host changed. | bool | true | no | | only\_checksum | Show only checksum of watch value in plan diff. | bool | true | no | | script | Path to script file. | string
| Name | Type | Description | Default |
|---|---|---|---|
| ssh_host | string | Required: hostname for SSH connection. | required |
| ssh_private_key | string | Required: private key for SSH authentication. | required |
| watch | string | Execute script if value changed. | "" |
| script | string | Path to script file. | "" |
| commands | list(string) | Inline commands. | [] |
| only_checksum | bool | Show only checksum of watch value in plan diff. | true |
| on_host_changed | bool | Execute script if SSH host changed. | true |
| ssh_user | string | SSH username. | "root" |
| ssh_port | number | SSH server port number. | 22 |
success — Last success execution identifier. Can be used for call some actions after hook script finished.