sync-files
4ops/sync-files/null
Terraform module
Sync files Helps to synchronize files on remote server. Requirements | Name | Version | |------|---------| | terraform | >= 0.13 | | null | ~> 3.0.0 | Providers | Name | Version | |------|---------| | null | ~> 3.0.0 | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | default\_file\_mode | Default permissions mode. Used if .mode has empty value. | string | "0644" | no | | files | Map absolute target file paths to objects contains their properties. | map(object({ content = string owner = string mode = string })) | {} | no | | force\_resync\_all | Replaces all files. | string | "Change me for action" | no | | force\_update\_permissions | Updates owner and mode for all files. | string | "Change me for action" | no | | resync\_on\_ho
| Name | Type | Description | Default |
|---|---|---|---|
| ssh_host | string | Required: hostname for SSH connection. | required |
| ssh_private_key | string | Required: private key for SSH authentication. | required |
| files | map(object({ content = str | Map absolute target file paths to objects contains their properties. | {} |
| upload_directory | string | Temporary directory for uploading files. It will be created if not exists. | "~/.upload" |
| force_update_permissions | string | Updates owner and mode for all files. | "Change me for action" |
| ssh_user | string | SSH username. | "root" |
| ssh_port | number | SSH server port number. | 22 |
| sudo_enabled | bool | Enables sudo command usage. Sudo command can be customized in `sudo_template` in | true |
| sudo_template | string | String template for running commands with super user privileges. | "sudo %s" |
| default_file_mode | string | Default permissions mode. Used if <file>.mode has empty value. | "0644" |
| force_resync_all | string | Replaces all files. | "Change me for action" |
| resync_on_host_changed | bool | Resync file if SSH host changed. | true |
file_updated — Last time file update identifier. Can be used for call some actions after file changed.