sync-files

4ops/sync-files/null

Terraform Module HCL NULL

Terraform module

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

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

Inputs (12)
NameTypeDescriptionDefault
ssh_hoststringRequired: hostname for SSH connection. required
ssh_private_keystringRequired: private key for SSH authentication. required
filesmap(object({ content = strMap absolute target file paths to objects contains their properties.{}
upload_directorystringTemporary directory for uploading files. It will be created if not exists."~/.upload"
force_update_permissionsstringUpdates owner and mode for all files."Change me for action"
ssh_userstringSSH username."root"
ssh_portnumberSSH server port number.22
sudo_enabledboolEnables sudo command usage. Sudo command can be customized in `sudo_template` intrue
sudo_templatestringString template for running commands with super user privileges."sudo %s"
default_file_modestringDefault permissions mode. Used if <file>.mode has empty value."0644"
force_resync_allstringReplaces all files."Change me for action"
resync_on_host_changedboolResync file if SSH host changed.true
Outputs (1)
file_updated — Last time file update identifier. Can be used for call some actions after file changed.
Resources (1)
null_resource
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud NULL
★ Stars0
Forks2
Total downloads789
Inputs12
Outputs1
Resources1
Examples3
LicenseMIT
Namespace4ops
Updated