Table of Contents
Ensure a directory’s absence
Compatible with nodes running Rudder 3.1 or higher.
If recursive
is false, only an empty directory can be deleted.
- target: Directory to remove
- recursive: Should deletion be recursive, "true" or "false" (defaults to "false")
directory_absent_${target}_{kept, repaired, not_ok, reached}
Checks if a directory exists
Compatible with nodes running Rudder 3.1 or higher.
This bundle will define a class
directory_check_exists_${directory_name}_{ok, reached, kept}
if the
directory exists, or
directory_check_exists_${directory_name}_{not_ok, reached, not_kept, failed}
if the directory doesn’t exists
- directory_name: Full path of the directory to check
directory_check_exists_${directory_name}_{kept, repaired, not_ok, reached}