file_from_remote_source
Ensure that a file or directory is copied from a policy server.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
source | Source file (absolute path on the policy server). This parameter is required. |
path | Destination file (absolute path on the target node). This parameter is required. |
Outcome conditions
You need to replace ${path}
with its actual canonified value.
- ✅ Ok:
file_from_remote_source_${path}_ok
- ☑️ Already compliant:
file_from_remote_source_${path}_kept
- 🟨 Repaired:
file_from_remote_source_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
file_from_remote_source_${path}_error
Example
method: file_from_remote_source
params:
source: VALUE
path: VALUE
Documentation
Note: This method uses the agent native file copy protocol, and can only download files from the policy server. To download a file from an external source, you can use HTTP with the file_download method.
This method requires that the policy server is configured to accept copy of the source file from the agents it will be applied to.
You can download a file from the shared files with:
/var/rudder/configuration-repository/shared-files/PATH_TO_YOUR_FILE