Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_hana_preconfigure: Be less restrictive with new RHEL versions #510

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions roles/sap_hana_preconfigure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ For the RHEL System Roles for SAP, or for Red Hat Automation Hub, use 'redhat.rh

### sap_hana_preconfigure_min_rhel_release_check
- _Type:_ `bool`
- _Default:_ `true`
- _Default:_ `false`

Check the RHEL release against a predefined list of known SAP HANA supported RHEL minor releases.<br>
If this parameter is set to `false`, the role will *not* perform this check.<br>
Check the RHEL release against parameter `sap_hana_preconfigure_supported_rhel_minor_releases`, which is a list of<br>
known SAP HANA supported RHEL minor releases. By default, the role will display a message and continue running if<br>
the RHEL release is not part of that list. If set to `true`, the role will fail in such a case.<br>

### sap_hana_preconfigure_supported_rhel_minor_releases
- _Type:_ `list` with elements of type `str`
Expand Down
7 changes: 4 additions & 3 deletions roles/sap_hana_preconfigure/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ sap_hana_preconfigure_system_roles_collection: 'fedora.linux_system_roles'
# - fedora.linux_system_roles
# - redhat.rhel_system_roles

sap_hana_preconfigure_min_rhel_release_check: true
# Check the RHEL release against a predefined list of known SAP HANA supported RHEL minor releases.
# If this parameter is set to `false`, the role will *not* perform this check.
sap_hana_preconfigure_min_rhel_release_check: false
# Check the RHEL release against parameter `sap_hana_preconfigure_supported_rhel_minor_releases`, which is a list of
# known SAP HANA supported RHEL minor releases. By default, the role will display a message and continue running if
# the RHEL release is not part of that list. If set to `true`, the role will fail in such a case.

sap_hana_preconfigure_supported_rhel_minor_releases: "{{ __sap_hana_preconfigure_supported_rhel_minor_releases }}"
# Use this parameter to set your own list of SAP HANA supported RHEL minor releases.
Expand Down
7 changes: 4 additions & 3 deletions roles/sap_hana_preconfigure/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ argument_specs:
type: str

sap_hana_preconfigure_min_rhel_release_check:
default: true
default: false
description:
- Check the RHEL release against a predefined list of known SAP HANA supported RHEL minor releases.
- If this parameter is set to `false`, the role will *not* perform this check.
- Check the RHEL release against parameter `sap_hana_preconfigure_supported_rhel_minor_releases`, which is a list of
- known SAP HANA supported RHEL minor releases. By default, the role will display a message and continue running if
- the RHEL release is not part of that list. If set to `true`, the role will fail in such a case.
required: false
type: bool

Expand Down
6 changes: 4 additions & 2 deletions roles/sap_hana_preconfigure/tasks/RedHat/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
ansible.builtin.setup:
gather_subset: distribution_version

- name: Ensure that the system is running a RHEL release which is supported for SAP HANA
- name: Report if the system is running a RHEL release which is supported for SAP HANA
ansible.builtin.assert:
that: ansible_distribution_version in "{{ sap_hana_preconfigure_supported_rhel_minor_releases }}"
fail_msg: "The RHEL release {{ ansible_distribution_version }} is not supported for SAP HANA!"
fail_msg:
- "The RHEL release {{ ansible_distribution_version }} might not be supported for SAP HANA. Please check SAP note 2235581!"
- "If necessary, adapt role parameter `sap_hana_preconfigure_supported_rhel_minor_releases` accordingly."
success_msg: "The RHEL release {{ ansible_distribution_version }} is supported for SAP HANA."
ignore_errors: "{{ not sap_hana_preconfigure_min_rhel_release_check }}"

Expand Down