file_from_local_source_recursion
Ensure that a file or directory is copied from a local source.
⚙️ Compatible targets: Linux
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. |
recursion | Recursion depth to enforce for this path (0, 1, 2, ..., inf). 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_recursion
params:
path: VALUE
recursion: VALUE
source: VALUE
Documentation
Ensure that a file or directory is copied from a local source. If the source is a directory, you can force a maximum level of copy recursion.
- 0 being no recursion, which will only create an empty folder
- inf being a complete recursive copy of the folder
- 1,2,3,... will force the maximal level of recursion to copy