remote-exec-hook

4ops/remote-exec-hook/null

Terraform Module HCL NULL

Terraform module

Install
module "remote-exec-hook" {
source = "4ops/remote-exec-hook/null"
version = "1.0.0"
}
plain text: /constructs/tfmod-4ops-remote-exec-hook-null/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (9)
NameTypeDescriptionDefault
ssh_hoststringRequired: hostname for SSH connection. required
ssh_private_keystringRequired: private key for SSH authentication. required
watchstringExecute script if value changed.""
scriptstringPath to script file.""
commandslist(string)Inline commands.[]
only_checksumboolShow only checksum of watch value in plan diff.true
on_host_changedboolExecute script if SSH host changed.true
ssh_userstringSSH username."root"
ssh_portnumberSSH server port number.22
Outputs (1)
success — Last success execution identifier. Can be used for call some actions after hook script finished.
Resources (1)
null_resource
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud NULL
★ Stars0
Forks2
Total downloads786
Inputs9
Outputs1
Resources1
Examples3
LicenseMIT
Namespace4ops
Updated