Directory


directory_check_exists

Checks if a directory exists

Compatible with nodes running Rudder 2.11 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 2.11 or higher.

Parameters

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

Classes defined

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