Checks if two files are the same (hard links).

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
pathFile name #1 (absolute path on the target node).

This parameter is required.
path_2File name #2 (absolute path on the target node).

This parameter is required.

Outcome conditions

You need to replace ${path} with its actual canonified value.

  • ✅ Ok: file_check_hardlink_${path}_ok
    • ☑️ Already compliant: file_check_hardlink_${path}_kept
    • 🟨 Repaired: file_check_hardlink_${path}_repaired
  • ❌ Error: file_check_hardlink_${path}_error

Example

method: file_check_hardlink
params:
  path: VALUE
  path_2: VALUE

Documentation

This bundle will define a condition file_check_hardlink_${path}_{ok, reached, kept} if the two files ${path} and ${path_2} are hard links of each other, or file_check_hardlink_${path}_{not_ok, reached, not_kept, failed} if if the files are not hard links.