file_from_shared_folder
Ensure that a file or directory is copied from the Rudder shared folder.
⚙️ Compatible targets: Linux, Windows
Parameters
Name | Documentation |
---|---|
source | Source file (path, relative to /var/rudder/configuration-repository/shared-files). This parameter is required. |
path | Destination file (absolute path on the target node). This parameter is required. |
hash_type | Hash algorithm used to check if file is updated (sha256, sha512). Only used on Windows, ignored on Unix. default is sha256. Choices:
This parameter is optional. |
Outcome conditions
You need to replace ${path}
with its actual canonified value.
- ✅ Ok:
file_from_shared_folder_${path}_ok
- ☑️ Already compliant:
file_from_shared_folder_${path}_kept
- 🟨 Repaired:
file_from_shared_folder_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
file_from_shared_folder_${path}_error
Example
method: file_from_shared_folder
params:
hash_type: sha256
source: VALUE
path: VALUE
Documentation
Ensure that a file or directory is copied from the Rudder shared folder.
The Rudder shared folder is located on the Rudder server under /var/rudder/configuration-repository/shared-files
.
Every file/folder in the shared folder will be available for every managed node.
This method will download and update the destination file from a source taken from this shared folder.
A file in the shared folder will be updated on the node side at agent run.