Directory


directory_absent

Ensure a directory’s absence

Compatible with nodes running Rudder 3.1 or higher.

Usage

If recursive is false, only an empty directory can be deleted.

Parameters

  • target: Directory to remove
  • recursive: Should deletion be recursive, "true" or "false" (defaults to "false")

Classes defined

directory_absent_${target}_{kept, repaired, not_ok, reached}


directory_check_exists

Checks if a directory exists

Compatible with nodes running Rudder 3.1 or higher.

Usage

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

Parameters

  • directory_name: Full path of the directory to check

Classes defined

directory_check_exists_${directory_name}_{kept, repaired, not_ok, reached}


directory_create

Create a directory if it doesn’t exist

Compatible with nodes running Rudder 3.1 or higher.

Parameters

  • target: Full path of directory to create (trailing / is optional)

Classes defined

directory_create_${target}_{kept, repaired, not_ok, reached}