Skip to content

sap_hana_preconfigure: Support loading vars which are valid for RHEL minor release and all later ones #1095

Description

@berndfinger

Ansible Role

sap_hana_preconfigure

OS Family

RHEL

Feature/Enhancement request

We want to be able to define role vars which are valid for a certain RHEL minor release and all later ones, without having to define one vars file per each RHEL minor release. This has been implemented as part of #1083 but is causing the problem initially reported in #1093, see also #1094.
If possible, avoid loading role vars files via a find task running on localhost, see #1094 (comment).

The order of variable loading should be as follows (example for SLES 15.6 or SLES_SAP 15.6 and RHEL 9.4):

  1. Suse.yml / RedHat.yml
  2. SLES_15.yml / RedHat_9.yml
  3. (SLES_SAP only) SLES_SAP_15.yml
  4. (RHEL only) RedHat_9.1.plus.yml
  5. (RHEL only) RedHat_9.2.plus.yml
  6. (RHEL only) RedHat_9.3.plus.yml
  7. (RHEL only) RedHat_9.4.plus.yml
  8. SLES_15.6.yml / RedHat_9.4.yml
  9. (SLES_SAP only) SLES_SAP_15.6.yml

Variables defined in later vars files will overwrite those defined before.

Note: Redefining a variable for a specific RHEL minor release (e.g. RedHat_9.4.yml) which is already defined in a plus file for the same RHEL minor release (e.g. RedHat_9.4.plus.yml) should be avoided because otherwise, users might have to investigate the variable loading order.

Community participation

Happy to implement this feature

Optional - Attempted solutions or manual steps

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions