file_from_local_source
Ensure that a file or directory is copied from a local source.
⚙️ Compatible targets: Linux, Windows
Parameters
Name | Documentation |
---|---|
source | Source file (absolute path on the target node). 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_local_source_${path}_ok
- ☑️ Already compliant:
file_from_local_source_${path}_kept
- 🟨 Repaired:
file_from_local_source_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
file_from_local_source_${path}_error
Example
method: file_from_local_source
params:
source: VALUE
path: VALUE
Documentation
Ensure that a file or directory is copied from a local source on and from the target node. The copy is not recursive if the target is a directory. To copy recursively a folder from a local source, use the File from local source recursion method.