Helps to synchronize files on remote server.
| Name |
Version |
| terraform |
>= 0.13 |
| null |
~> 3.0.0 |
| Name |
Version |
| null |
~> 3.0.0 |
| 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_host_changed |
Resync file if SSH host changed. |
bool |
true |
no |
| ssh_host |
Required: hostname for SSH connection. |
string |
n/a |
yes |
| ssh_port |
SSH server port number. |
number |
22 |
no |
| ssh_private_key |
Required: private key for SSH authentication. |
string |
n/a |
yes |
| ssh_user |
SSH username. |
string |
"root" |
no |
| sudo_enabled |
Enables sudo command usage. Sudo command can be customized in sudo_template input variable. |
bool |
true |
no |
| sudo_template |
String template for running commands with super user privileges. |
string |
"sudo %s" |
no |
| upload_directory |
Temporary directory for uploading files. It will be created if not exists. |
string |
"~/.upload" |
no |
| Name |
Description |
| file_updated |
Last time file update identifier. Can be used for call some actions after file changed. |