From d1ad5cb4f863aa6eacb8babdfc5880bbee2bcf51 Mon Sep 17 00:00:00 2001 From: Bernd Finger Date: Tue, 21 Jan 2025 15:24:51 +0100 Subject: [PATCH 1/6] sap*preconfigure: Add initial code for RHEL 10 Relates to #833. Signed-off-by: Bernd Finger --- .../vars/RedHat_10.yml | 104 +++++++++++ .../tasks/RedHat/generic/assert-thp.yml | 5 +- .../tasks/RedHat/generic/configure-thp.yml | 5 +- .../sap_hana_preconfigure/vars/RedHat_10.yml | 164 ++++++++++++++++++ .../vars/RedHat_10.yml | 43 +++++ 5 files changed, 317 insertions(+), 4 deletions(-) create mode 100644 roles/sap_general_preconfigure/vars/RedHat_10.yml create mode 100644 roles/sap_hana_preconfigure/vars/RedHat_10.yml create mode 100644 roles/sap_netweaver_preconfigure/vars/RedHat_10.yml diff --git a/roles/sap_general_preconfigure/vars/RedHat_10.yml b/roles/sap_general_preconfigure/vars/RedHat_10.yml new file mode 100644 index 000000000..a6788c0fc --- /dev/null +++ b/roles/sap_general_preconfigure/vars/RedHat_10.yml @@ -0,0 +1,104 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# vars file for sap_general_preconfigure + +__sap_general_preconfigure_sapnotes_versions: + - { number: '2369910', version: '18' } + - { number: '3108316', version: '2' } + - { number: '1771258', version: '6' } + +__sap_general_preconfigure_max_repo_type_x86_64: 'e4s' +__sap_general_preconfigure_max_repo_type_ppc64le: 'e4s' +__sap_general_preconfigure_max_repo_type_s390x: 'eus' + +__sap_general_preconfigure_max_repo_type: "{{ lookup('vars', '__sap_general_preconfigure_max_repo_type_' + ansible_architecture) }}" + +# RHEL 9 minor releases maximum repo support duration +__sap_general_preconfigure_max_repo_type_string_10_0: '{{ __sap_general_preconfigure_max_repo_type }}-' +__sap_general_preconfigure_max_repo_type_string_10_1: '' + +__sap_general_preconfigure_max_repo_type_string: "{{ lookup('vars', '__sap_general_preconfigure_max_repo_type_string_' + ansible_distribution_version | replace(\".\", \"_\")) }}" + +__sap_general_preconfigure_req_os_repos: + - rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-baseos-{{ __sap_general_preconfigure_max_repo_type_string }}rpms + - rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-appstream-{{ __sap_general_preconfigure_max_repo_type_string }}rpms +__sap_general_preconfigure_req_netweaver_repos: + - rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-sap-netweaver-{{ __sap_general_preconfigure_max_repo_type_string }}rpms +__sap_general_preconfigure_req_hana_repos: + - rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-sap-solutions-{{ __sap_general_preconfigure_max_repo_type_string }}rpms +__sap_general_preconfigure_req_ha_repos: + - rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-highavailability-{{ __sap_general_preconfigure_max_repo_type_string }}rpms + +__sap_general_preconfigure_envgroups: + - "server-product-environment" + +__sap_general_preconfigure_packagegroups_x86_64: + - "@server" + +__sap_general_preconfigure_packagegroups_ppc64le: + - "@server" + +__sap_general_preconfigure_packagegroups_s390x: + - "@server" + +__sap_general_preconfigure_packagegroups: "{{ lookup('vars', '__sap_general_preconfigure_packagegroups_' + ansible_architecture) }}" + +__sap_general_preconfigure_packages_x86_64: + - uuidd + - libnsl + - tcsh + - psmisc + - nfs-utils + - bind-utils +# package hostname: needed by rhel-system-roles-sap + - hostname +# package tuned: no longer part of package group "Core" in RHEL 10, so we have to install it + - tuned +# package libxcrypt-compat: needed by sapstartsrv and SAP HANA on RHEL 10: + - libxcrypt-compat +# English locale packages are required as per SAP note 2369910: + - langpacks-en + - glibc-langpack-en + +__sap_general_preconfigure_packages_ppc64le: + - uuidd + - libnsl + - tcsh + - psmisc + - nfs-utils + - bind-utils +# package hostname: needed by rhel-system-roles-sap + - hostname +# package tuned: no longer part of package group "Core" in RHEL 10, so we have to install it + - tuned +# package libxcrypt-compat: needed by sapstartsrv and SAP HANA on RHEL 10: + - libxcrypt-compat +# English locale packages are required as per SAP note 2369910: + - langpacks-en + - glibc-langpack-en + +__sap_general_preconfigure_packages_s390x: + - uuidd + - libnsl + - tcsh + - psmisc + - nfs-utils + - bind-utils +# package hostname: needed by rhel-system-roles-sap + - hostname +# package tuned: no longer part of package group "Core" in RHEL 10, so we have to install it + - tuned +# package libxcrypt-compat: needed by sapstartsrv on RHEL 10: + - libxcrypt-compat +# English locale packages are required as per SAP note 2369910: + - langpacks-en + - glibc-langpack-en + +__sap_general_preconfigure_packages: "{{ lookup('vars', '__sap_general_preconfigure_packages_' + ansible_architecture) }}" + +__sap_general_preconfigure_required_ppc64le: + - ibm-power-managed-rhel9 + +__sap_general_preconfigure_kernel_parameters_default: + - { name: vm.max_map_count, value: '2147483647' } diff --git a/roles/sap_hana_preconfigure/tasks/RedHat/generic/assert-thp.yml b/roles/sap_hana_preconfigure/tasks/RedHat/generic/assert-thp.yml index b13bf9966..feab4ab4f 100644 --- a/roles/sap_hana_preconfigure/tasks/RedHat/generic/assert-thp.yml +++ b/roles/sap_hana_preconfigure/tasks/RedHat/generic/assert-thp.yml @@ -40,8 +40,9 @@ when: - sap_hana_preconfigure_thp is undefined or sap_hana_preconfigure_thp | length == 0 - ansible_distribution == 'RedHat' - - ansible_distribution_major_version == '9' and - __sap_hana_preconfigure_fact_ansible_distribution_minor_version | int >= 2 + - (ansible_distribution_major_version == '9' and + __sap_hana_preconfigure_fact_ansible_distribution_minor_version | int >= 2) or + ansible_distribution_major_version == '10' - name: Set fact for THP if 'sap_hana_preconfigure_thp' is defined ansible.builtin.set_fact: diff --git a/roles/sap_hana_preconfigure/tasks/RedHat/generic/configure-thp.yml b/roles/sap_hana_preconfigure/tasks/RedHat/generic/configure-thp.yml index 1c60776b9..79542cea8 100644 --- a/roles/sap_hana_preconfigure/tasks/RedHat/generic/configure-thp.yml +++ b/roles/sap_hana_preconfigure/tasks/RedHat/generic/configure-thp.yml @@ -23,8 +23,9 @@ when: - sap_hana_preconfigure_thp is undefined or sap_hana_preconfigure_thp | length == 0 - ansible_distribution == 'RedHat' - - ansible_distribution_major_version == '9' and - __sap_hana_preconfigure_fact_ansible_distribution_minor_version | int >= 2 + - (ansible_distribution_major_version == '9' and + __sap_hana_preconfigure_fact_ansible_distribution_minor_version | int >= 2) or + ansible_distribution_major_version == '10' - name: Set fact for THP if 'sap_hana_preconfigure_thp' is defined ansible.builtin.set_fact: diff --git a/roles/sap_hana_preconfigure/vars/RedHat_10.yml b/roles/sap_hana_preconfigure/vars/RedHat_10.yml new file mode 100644 index 000000000..71a1c0156 --- /dev/null +++ b/roles/sap_hana_preconfigure/vars/RedHat_10.yml @@ -0,0 +1,164 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# supported RHEL 10 minor releases for SAP HANA: +__sap_hana_preconfigure_supported_rhel_minor_releases: [] + +# required repos for RHEL 10: +__sap_hana_preconfigure_req_repos_redhat_10_0_x86_64: + - "rhel-10-for-x86_64-baseos-e4s-rpms" + - "rhel-10-for-x86_64-appstream-e4s-rpms" + - "rhel-10-for-x86_64-sap-solutions-e4s-rpms" + +__sap_hana_preconfigure_req_repos_redhat_10_0_ppc64le: + - "rhel-10-for-ppc64le-baseos-e4s-rpms" + - "rhel-10-for-ppc64le-appstream-e4s-rpms" + - "rhel-10-for-ppc64le-sap-solutions-e4s-rpms" + +# required SAP notes for RHEL 10: +__sap_hana_preconfigure_sapnotes_versions_x86_64: + - { number: '3108302', version: '11' } + - { number: '2382421', version: '47' } + - { number: '3024346', version: '11' } + +__sap_hana_preconfigure_sapnotes_versions_ppc64le: + - { number: '2055470', version: '90' } + - { number: '3108302', version: '11' } + - { number: '2382421', version: '47' } + - { number: '3024346', version: '11' } + +__sap_hana_preconfigure_sapnotes_versions: "{{ lookup('vars', '__sap_hana_preconfigure_sapnotes_versions_' + ansible_architecture) }}" + +# In SAP Note XXX, certain minimal required packages for the different RHEL 10 minor releases are listed. +# The following will assign them properly to __sap_hana_preconfigure_min_pkgs. +# If variable __sap_hana_preconfigure_min_packages_VERSION_ARCH is not defined, +# variable __sap_hana_preconfigure_min_pkgs will be undefined as well. + +# Minimum required package levels for RHEL 10.0: +__sap_hana_preconfigure_min_packages_10_0_x86_64: [] + +__sap_hana_preconfigure_min_packages_10_0_ppc64le: [] + +__sap_hana_preconfigure_min_pkgs: "{{ lookup('vars', '__sap_hana_preconfigure_min_packages_' + ansible_distribution_version | string | replace(\".\", \"_\") + '_' + ansible_architecture) }}" + +__sap_hana_preconfigure_packages: +# SAP NOTE 3108316: + - expect +# package gtk3: only needed if the SAP HANA installation tools hdblcmgui and hdbsetup are used + - gtk3 + - krb5-workstation + - libatomic + - libcanberra-gtk3 + - libtool-ltdl + - numactl + - PackageKit-gtk3-module + - xorg-x11-xauth +# package chkconfig: needed by hdblcm to be able to access /etc/init.d + - chkconfig +# package compat-openssl11: currently not available in RHEL 10 +# - compat-openssl11 +# package libxcrypt-compat: needed SAP HANA and also by sapstartsrv on RHEL 9: +# - libxcrypt-compat # now installed by role sap_general_preconfigure, see also SAP note 3108316, version 4. +# For support purposes: +# package graphwiz: graph visualization tools, for supportability) + - graphviz +# package iptraf-ng: TCP/IP network monitor, for supportability) + - iptraf-ng +# package lm-sensors: TCP/IP network monitor, for supportability) + - lm_sensors +# package nfs-utils: support utilities for NFS, for supportability) + - nfs-utils +# SAP NOTE 3108302: + - tuned-profiles-sap-hana + +__sap_hana_preconfigure_packages_min_install: +# SAP NOTE 3108316: + - expect +# package gtk3: only needed if the SAP HANA installation tools hdblcmgui and hdbsetup are used +# - gtk3 + - krb5-workstation + - libatomic + - libcanberra-gtk3 + - libtool-ltdl + - numactl + - PackageKit-gtk3-module + - xorg-x11-xauth +# package compat-openssl11: needed for HANA scale-out and when configuring HANA backup on Azure + - compat-openssl11 +# required for SAP HANA on RHEL 9: + - libxcrypt-compat +# For support purposes: +# package graphwiz: graph visualization tools, for supportability) +# - graphviz +# package iptraf-ng: TCP/IP network monitor, for supportability) +# - iptraf-ng +# package lm-sensors: TCP/IP network monitor, for supportability) +# - lm_sensors +# package nfs-utils: support utilities for NFS, for supportability) +# - nfs-utils +# SAP NOTE 3108302: + - tuned-profiles-sap-hana + +# URL for the IBM Power Systems service and productivity tools, see https://www.ibm.com/support/pages/service-and-productivity-tools +__sap_hana_preconfigure_ibm_power_repo_url: 'https://public.dhe.ibm.com/software/server/POWER/Linux/yum/download/ibm-power-repo-latest.noarch.rpm' + +__sap_hana_preconfigure_required_ppc64le: + - ibm-power-managed-rhel9 + +# Network related kernel parameters as set in SAP Note 2382421: +__sap_hana_preconfigure_kernel_parameters_default: +# The following parameter should always be set: + - { name: net.ipv4.tcp_max_syn_backlog, value: 8192 } +# The following two parameters are automatically set by SAP Host Agent +# - { name: net.ipv4.ip_local_port_range, value: "40000 61000" } +# - { name: net.ipv4.ip_local_reserved_ports, value: -> SAP NOTE 2477204 } +# The following two parameters do not work when communicating with hosts behind NAT firewall: +# - { name: net.ipv4.tcp_tw_reuse, value: 1 } +# - { name: net.ipv4.tcp_tw_recycle, value: 1 } +# The following parameter should always be set but might not work on Azure (see SAP Note 2382421): + - { name: net.ipv4.tcp_timestamps, value: 1 } +# The following parameter should always be set: + - { name: net.ipv4.tcp_slow_start_after_idle, value: 0 } +# Tune the next four parameters for low latency system replication: +# - { net.ipv4.tcp_wmem, value } +# - { net.ipv4.tcp_rmem, value } +# - { net.core.wmem_max, value } +# - { net.core.rmem_max, value } +# Should be set correctly already on most systems, according to SAP Note 2382421: +# - { net.ipv4.tcp_window_scaling, 1 } +# The following only applies to HANA 1 <= 122.14 and HANA 2 SPS00. +# So we do not change the default. +# - { name: net.ipv4.tcp_syn_retries, value: 8 } + +# Network related kernel parameters for ppc64le: +__sap_hana_preconfigure_kernel_parameters_default_ppc64le: + - { name: net.core.rmem_max, value: 56623104 } + - { name: net.core.wmem_max, value: 56623104 } + - { name: net.ipv4.tcp_rmem, value: "65536 262088 56623104" } + - { name: net.ipv4.tcp_wmem, value: "65536 262088 56623104" } + - { name: net.ipv4.tcp_mem, value: "56623104 56623104 56623104" } + +# Network related kernel parameters for NetApp NFS, as set in SAP Note 3024346: +__sap_hana_preconfigure_kernel_parameters_netapp_nfs: + - { name: net.core.rmem_max, value: 16777216 } + - { name: net.core.wmem_max, value: 16777216 } + - { name: net.ipv4.tcp_rmem, value: "4096 131072 16777216" } + - { name: net.ipv4.tcp_wmem, value: "4096 16384 16777216" } + - { name: net.core.netdev_max_backlog, value: 300000 } +# already set in SAP note 2382421: +# - { name: net.ipv4.tcp_slow_start_after_idle, value: 0 } + - { name: net.ipv4.tcp_no_metrics_save, value: 1 } + - { name: net.ipv4.tcp_moderate_rcvbuf, value: 1 } + - { name: net.ipv4.tcp_window_scaling, value: 1 } +# already set in SAP note 2382421: +# - { name: net.ipv4.tcp_timestamps, value: 1 } + - { name: net.ipv4.tcp_sack, value: 1 } + +# yamllint disable rule:commas rule:colons +__sap_hana_preconfigure_packages_and_services: + abrtd: { pkg: 'abrt', svc: 'abrtd', systemd_enabled: 'no', systemd_state: 'stopped', svc_status: 'disabled', svc_state: 'inactive' } + abrt-ccpp: { pkg: 'abrt-addon-ccpp', svc: 'abrt-ccpp', systemd_enabled: 'no', systemd_state: 'stopped', svc_status: 'disabled', svc_state: 'inactive' } + numad: { pkg: 'numad', svc: 'numad', systemd_enabled: 'no', systemd_state: 'stopped', svc_status: 'disabled', svc_state: 'inactive' } + kdump: { pkg: 'kexec-tools', svc: 'kdump', systemd_enabled: 'no', systemd_state: 'stopped', svc_status: 'disabled', svc_state: 'inactive' } + firewalld: { pkg: 'firewalld', svc: 'firewalld', systemd_enabled: 'no', systemd_state: 'stopped', svc_status: 'disabled', svc_state: 'inactive' } +# yamllint enable rule:commas rule:colons diff --git a/roles/sap_netweaver_preconfigure/vars/RedHat_10.yml b/roles/sap_netweaver_preconfigure/vars/RedHat_10.yml new file mode 100644 index 000000000..74dfe7749 --- /dev/null +++ b/roles/sap_netweaver_preconfigure/vars/RedHat_10.yml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# vars file for sap_netweaver_preconfigure + +__sap_netweaver_preconfigure_sapnotes: + - "2526952" + +__sap_netweaver_preconfigure_sapnotes_versions: + - { number: '2526952', version: '5' } + +__sap_netweaver_preconfigure_packages: + - tuned-profiles-sap + +# SAP note 3242422 v2: +__sap_netweaver_preconfigure_adobe_doc_services_packages: + - autoconf + - automake + - cyrus-sasl + - expat + - fontconfig + - glibc-devel + - keyutils-libs + - krb5-libs + - libcom_err + - libidn2 + - libselinux + - libxcb + - nspr + - nss + - nss-softokn + - nss-softokn-freebl + - nss-util + - openldap + - openssl + - zlib + - libstdc++ + - libX11 + - libXau + - glibc + - libstdc++ + - libgcc + - libuuid From a5305feac6e33b93f44b05e975b19a55ecfb9e61 Mon Sep 17 00:00:00 2001 From: Bernd Finger Date: Wed, 22 Jan 2025 15:12:38 +0100 Subject: [PATCH 2/6] sap_general_preconfigure: Add RHEL 10 Signed-off-by: Bernd Finger --- .../tasks/sapnote/3562909.yml | 72 +++++++++++++++++++ .../sapnote/3562909/02-assert-selinux.yml | 13 ++++ .../sapnote/3562909/02-configure-selinux.yml | 13 ++++ .../sapnote/3562909/03-assert-hostname.yml | 25 +++++++ .../sapnote/3562909/03-configure-hostname.yml | 39 ++++++++++ .../04-assert-network-time-and-date.yml | 35 +++++++++ .../04-configure-network-time-and-date.yml | 16 +++++ .../sapnote/3562909/05-assert-firewall.yml | 13 ++++ .../sapnote/3562909/05-configure-firewall.yml | 13 ++++ .../tasks/sapnote/3562909/06-assert-uuidd.yml | 13 ++++ .../sapnote/3562909/06-configure-uuidd.yml | 13 ++++ .../tasks/sapnote/3562909/07-assert-tmpfs.yml | 16 +++++ .../sapnote/3562909/07-configure-tmpfs.yml | 16 +++++ .../08-assert-linux-kernel-parameters.yml | 13 ++++ .../08-configure-linux-kernel-parameters.yml | 13 ++++ .../09-assert-process-resource-limits.yml | 18 +++++ .../09-configure-process-resource-limits.yml | 13 ++++ .../3562909/10-assert-systemd-tmpfiles.yml | 13 ++++ .../3562909/10-configure-systemd-tmpfiles.yml | 13 ++++ .../tasks/sapnote/assert-3562909.yml | 72 +++++++++++++++++++ .../vars/RedHat_10.yml | 2 +- 21 files changed, 453 insertions(+), 1 deletion(-) create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml create mode 100644 roles/sap_general_preconfigure/tasks/sapnote/assert-3562909.yml diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909.yml new file mode 100644 index 000000000..b671d6399 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909.yml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure - Display SAP note number 3562909 and its version + ansible.builtin.debug: + msg: "SAP note {{ (__sap_general_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562909$') | first).number }} + (version {{ (__sap_general_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562909$') | first).version }}): Configure RHEL 9" + tags: + - always + +- name: Import tasks from '3562909/02-configure-selinux.yml' + ansible.builtin.import_tasks: 3562909/02-configure-selinux.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_02 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_02 + +- name: Import tasks from '3562909/03-configure-hostname.yml' + ansible.builtin.import_tasks: 3562909/03-configure-hostname.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_03 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_03 + +- name: Import tasks from '3562909/04-configure-network-time-and-date.yml' + ansible.builtin.import_tasks: 3562909/04-configure-network-time-and-date.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_04 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_04 + +- name: Import tasks from '3562909/05-configure-firewall.yml' + ansible.builtin.import_tasks: 3562909/05-configure-firewall.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_05 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_05 + +- name: Import tasks from '3562909/06-configure-uuidd.yml' + ansible.builtin.import_tasks: 3562909/06-configure-uuidd.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_06 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_06 + +- name: Import tasks from '3562909/07-configure-tmpfs.yml' + ansible.builtin.import_tasks: 3562909/07-configure-tmpfs.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_07 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_07 + +- name: Import tasks from '3562909/08-configure-linux-kernel-parameters.yml' + ansible.builtin.import_tasks: 3562909/08-configure-linux-kernel-parameters.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_08 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_08 + +- name: Import tasks from '3562909/09-configure-process-resource-limits.yml' + ansible.builtin.import_tasks: 3562909/09-configure-process-resource-limits.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_09 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_09 + +- name: Import tasks from '3562909/10-configure-systemd-tmpfiles.yml' + ansible.builtin.import_tasks: 3562909/10-configure-systemd-tmpfiles.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_10 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_10 diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml new file mode 100644 index 000000000..7782afee4 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-2 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 2: Configure SELinux" + tags: + - sap_general_preconfigure_selinux + +- name: Import tasks from '../../RedHat/generic/assert-selinux.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-selinux.yml + tags: + - sap_general_preconfigure_selinux diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml new file mode 100644 index 000000000..8bf1b2342 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-2 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 2: Configure SELinux" + tags: + - sap_general_preconfigure_selinux + +- name: Import tasks from '../../RedHat/generic/configure-selinux.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/configure-selinux.yml + tags: + - sap_general_preconfigure_selinux diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml new file mode 100644 index 000000000..b83b7a146 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-3 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 3: Configure Hostname" + tags: + - sap_general_preconfigure_hostname + - sap_general_preconfigure_etc_hosts + - sap_general_preconfigure_dns_name_resolution + +- name: Import tasks from '../../RedHat/generic/assert-hostname.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-hostname.yml + tags: + - sap_general_preconfigure_hostname + +- name: Import tasks from '../../RedHat/generic/assert-etc-hosts.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-etc-hosts.yml + tags: + - sap_general_preconfigure_etc_hosts + +- name: Import tasks from '../../RedHat/generic/assert-dns-name-resolution.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-dns-name-resolution.yml + tags: + - sap_general_preconfigure_dns_name_resolution diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml new file mode 100644 index 000000000..15b884b9d --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-3 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 3: Configure Hostname" + tags: + - sap_general_preconfigure_hostname + - sap_general_preconfigure_etc_hosts + - sap_general_preconfigure_dns_name_resolution + +- name: Import tasks from '../../RedHat/generic/configure-hostname.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/configure-hostname.yml + tags: + - sap_general_preconfigure_hostname + +- name: Import role sap_maintain_etc_hosts + ansible.builtin.import_role: + name: '{{ sap_general_preconfigure_sap_install_collection }}.sap_maintain_etc_hosts' + vars: + sap_maintain_etc_hosts_list: + - node_ip: "{{ sap_general_preconfigure_ip }}" + node_name: "{{ sap_general_preconfigure_hostname }}" + node_domain: "{{ sap_general_preconfigure_domain }}" + state: present + when: sap_general_preconfigure_modify_etc_hosts + tags: + - sap_general_preconfigure_etc_hosts + +- name: Import tasks from '../../RedHat/generic/assert-etc-hosts.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-etc-hosts.yml + when: not sap_general_preconfigure_modify_etc_hosts + tags: + - sap_general_preconfigure_etc_hosts + +- name: Import tasks from '../../RedHat/generic/check-dns-name-resolution.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/check-dns-name-resolution.yml + tags: + - sap_general_preconfigure_dns_name_resolution diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml new file mode 100644 index 000000000..e87a2d456 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-4 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 4: Configure Network Time and Date" + tags: + - sap_general_preconfigure_network_time_and_date + +# Reason for noqa: We need to get the current status only +- name: Get status of chronyd # noqa command-instead-of-module + ansible.builtin.command: systemctl status chronyd + register: __sap_general_preconfigure_register_chronyd_status_assert + ignore_errors: true + changed_when: false + tags: + - sap_general_preconfigure_network_time_and_date + +- name: Assert that chronyd is enabled + ansible.builtin.assert: + that: "'/usr/lib/systemd/system/chronyd.service; enabled' in __sap_general_preconfigure_register_chronyd_status_assert.stdout" + fail_msg: "FAIL: Service 'chronyd' is not enabled!" + success_msg: "PASS: Service 'chronyd' is enabled." + ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}" + tags: + - sap_general_preconfigure_network_time_and_date + +- name: Assert that chronyd is active + ansible.builtin.assert: + that: "'active (running)' in __sap_general_preconfigure_register_chronyd_status_assert.stdout" + fail_msg: "FAIL: Service 'chronyd' is not active!" + success_msg: "PASS: Service 'chronyd' is active." + ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}" + tags: + - sap_general_preconfigure_network_time_and_date diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml new file mode 100644 index 000000000..d369d843d --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-4 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 4: Configure Network Time and Date" + tags: + - sap_general_preconfigure_network_time_and_date + +- name: Start and enable service chronyd + ansible.builtin.systemd: + name: chronyd + state: started + enabled: true + tags: + - sap_general_preconfigure_network_time_and_date diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml new file mode 100644 index 000000000..74dd36c79 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-5 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 5: Configure the Firewall" + tags: + - sap_general_preconfigure_firewall + +- name: Import tasks from '../../RedHat/generic/assert-firewall.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-firewall.yml + tags: + - sap_general_preconfigure_firewall diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml new file mode 100644 index 000000000..e69ab95d5 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-5 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 5: Configure the Firewall" + tags: + - sap_general_preconfigure_firewall + +- name: Import tasks from '../../RedHat/generic/configure-firewall.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/configure-firewall.yml + tags: + - sap_general_preconfigure_firewall diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml new file mode 100644 index 000000000..e1fb78b88 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-6 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 6: Configure uuidd" + tags: + - sap_general_preconfigure_configure_uuidd + +- name: Import tasks from '../../RedHat/generic/assert-uuidd.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-uuidd.yml + tags: + - sap_general_preconfigure_configure_uuidd diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml new file mode 100644 index 000000000..30be6c160 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-6 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 6: Configure uuidd" + tags: + - sap_general_preconfigure_configure_uuidd + +- name: Import tasks from '../../RedHat/generic/configure-uuidd.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/configure-uuidd.yml + tags: + - sap_general_preconfigure_configure_uuidd diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml new file mode 100644 index 000000000..f64c621f6 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-7 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 7: Configure tmpfs; + memtotal_mb = {{ ansible_memtotal_mb }}; + swaptotal_mb = {{ ansible_swaptotal_mb }}; + sap_general_preconfigure_size_of_tmpfs_gb = {{ sap_general_preconfigure_size_of_tmpfs_gb }}" + tags: + - sap_general_preconfigure_configure_tmpfs + +- name: Import tasks from '../../RedHat/generic/assert-tmpfs.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-tmpfs.yml + tags: + - sap_general_preconfigure_configure_tmpfs diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml new file mode 100644 index 000000000..44f130211 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-7 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 7: Configure tmpfs; + memtotal_mb = {{ ansible_memtotal_mb }}; + swaptotal_mb = {{ ansible_swaptotal_mb }}; + sap_general_preconfigure_size_of_tmpfs_gb = {{ sap_general_preconfigure_size_of_tmpfs_gb }}" + tags: + - sap_general_preconfigure_configure_tmpfs + +- name: Import tasks from '../../RedHat/generic/configure-tmpfs.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/configure-tmpfs.yml + tags: + - sap_general_preconfigure_configure_tmpfs diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml new file mode 100644 index 000000000..7160b861e --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-8 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 8: Configure Linux Kernel Parameters" + tags: + - sap_general_preconfigure_kernel_parameters + +- name: Import tasks from '../../RedHat/generic/assert-kernel-parameters.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-kernel-parameters.yml + tags: + - sap_general_preconfigure_kernel_parameters diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml new file mode 100644 index 000000000..b07996fc6 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-8 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 8: Configure Linux Kernel Parameters" + tags: + - sap_general_preconfigure_kernel_parameters + +- name: Import tasks from '../../RedHat/generic/configure-kernel-parameters.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/configure-kernel-parameters.yml + tags: + - sap_general_preconfigure_kernel_parameters diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml new file mode 100644 index 000000000..2f31d63de --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-9 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 9: Configure Process Resource Limits" + tags: + - sap_general_preconfigure_nproc_limits + +- name: Import tasks from '../../RedHat/generic/assert-limits-conf-file.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-limits-conf-file.yml + tags: + - sap_general_preconfigure_nproc_limits + +- name: Import tasks from '../../RedHat/generic/assert-nproc-limits.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-nproc-limits.yml + tags: + - sap_general_preconfigure_nproc_limits diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml new file mode 100644 index 000000000..5512d2ac5 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-9 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 9: Configure Process Resource Limits" + tags: + - sap_general_preconfigure_nproc_limits + +- name: Import tasks from '../../RedHat/generic/increase-nproc-limits.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/increase-nproc-limits.yml + tags: + - sap_general_preconfigure_nproc_limits diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml new file mode 100644 index 000000000..4a56c51e7 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108316-10 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 10: Configure systemd-tmpfiles" + tags: + - sap_general_preconfigure_systemd_tmpfiles + +- name: Import tasks from '../../RedHat/generic/assert-systemd-tmpfiles.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/assert-systemd-tmpfiles.yml + tags: + - sap_general_preconfigure_systemd_tmpfiles diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml new file mode 100644 index 000000000..41de6a789 --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108316-10 + ansible.builtin.debug: + msg: "SAP note 3108316 Step 10: Configure systemd-tmpfiles" + tags: + - sap_general_preconfigure_systemd_tmpfiles + +- name: Import tasks from '../../RedHat/generic/configure-systemd-tmpfiles.yml' + ansible.builtin.import_tasks: ../../RedHat/generic/configure-systemd-tmpfiles.yml + tags: + - sap_general_preconfigure_systemd_tmpfiles diff --git a/roles/sap_general_preconfigure/tasks/sapnote/assert-3562909.yml b/roles/sap_general_preconfigure/tasks/sapnote/assert-3562909.yml new file mode 100644 index 000000000..5237ed50a --- /dev/null +++ b/roles/sap_general_preconfigure/tasks/sapnote/assert-3562909.yml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert - Display SAP note number 3562909 and its version + ansible.builtin.debug: + msg: "SAP note {{ (__sap_general_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562909$') | first).number }} + (version {{ (__sap_general_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562909$') | first).version }}): Configure RHEL 9" + tags: + - always + +- name: Import tasks from '3562909/02-assert-selinux.yml' + ansible.builtin.import_tasks: 3562909/02-assert-selinux.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_02 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_02 + +- name: Import tasks from '3562909/03-assert-hostname.yml' + ansible.builtin.import_tasks: 3562909/03-assert-hostname.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_03 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_03 + +- name: Import tasks from '3562909/04-assert-network-time-and-date.yml' + ansible.builtin.import_tasks: 3562909/04-assert-network-time-and-date.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_04 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_04 + +- name: Import tasks from '3562909/05-assert-firewall.yml' + ansible.builtin.import_tasks: 3562909/05-assert-firewall.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_05 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_05 + +- name: Import tasks from '3562909/06-assert-uuidd.yml' + ansible.builtin.import_tasks: 3562909/06-assert-uuidd.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_06 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_06 + +- name: Import tasks from '3562909/07-assert-tmpfs.yml' + ansible.builtin.import_tasks: 3562909/07-assert-tmpfs.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_07 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_07 + +- name: Import tasks from '3562909/08-assert-linux-kernel-parameters.yml' + ansible.builtin.import_tasks: 3562909/08-assert-linux-kernel-parameters.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_08 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_08 + +- name: Import tasks from '3562909/09-assert-process-resource-limits.yml' + ansible.builtin.import_tasks: 3562909/09-assert-process-resource-limits.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_09 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_09 + +- name: Import tasks from '3562909/10-assert-systemd-tmpfiles.yml' + ansible.builtin.import_tasks: 3562909/10-assert-systemd-tmpfiles.yml + when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_3562909_10 | d(false) + tags: + - sap_general_preconfigure_3562909 + - sap_general_preconfigure_3562909_10 diff --git a/roles/sap_general_preconfigure/vars/RedHat_10.yml b/roles/sap_general_preconfigure/vars/RedHat_10.yml index a6788c0fc..ef1a5803f 100644 --- a/roles/sap_general_preconfigure/vars/RedHat_10.yml +++ b/roles/sap_general_preconfigure/vars/RedHat_10.yml @@ -5,7 +5,7 @@ __sap_general_preconfigure_sapnotes_versions: - { number: '2369910', version: '18' } - - { number: '3108316', version: '2' } + - { number: '3562909', version: '1' } - { number: '1771258', version: '6' } __sap_general_preconfigure_max_repo_type_x86_64: 'e4s' From e791d93a74c74e8f3d4146b107b4c4fbe712d61b Mon Sep 17 00:00:00 2001 From: Bernd Finger Date: Wed, 22 Jan 2025 15:17:16 +0100 Subject: [PATCH 3/6] sap_hana_preconfigure: Add RHEL 10 Signed-off-by: Bernd Finger --- .../tasks/sapnote/3562919.yml | 52 +++++++++++++++++++ .../sapnote/3562919/01-assert-selinux.yml | 9 ++++ .../sapnote/3562919/01-configure-selinux.yml | 9 ++++ .../tasks/sapnote/3562919/02-assert-tuned.yml | 9 ++++ .../sapnote/3562919/02-configure-tuned.yml | 9 ++++ .../03-assert-abrt-coredumps-kdump.yml | 9 ++++ .../03-disable-abrt-coredumps-kdump.yml | 9 ++++ .../3562919/04-assert-auto-numa-balancing.yml | 10 ++++ .../04-turn-off-auto-numa-balancing.yml | 10 ++++ .../tasks/sapnote/3562919/05-assert-thp.yml | 10 ++++ .../sapnote/3562919/05-configure-thp.yml | 10 ++++ .../06-assert-c-states-for-lower-latency.yml | 10 ++++ ...6-configure-c-states-for-lower-latency.yml | 10 ++++ .../3562919/07-assert-cpu-governor.yml | 11 ++++ .../3562919/07-configure-cpu-governor.yml | 11 ++++ .../tasks/sapnote/3562919/08-assert-epb.yml | 11 ++++ .../sapnote/3562919/08-configure-epb.yml | 11 ++++ .../tasks/sapnote/3562919/09-assert-ksm.yml | 9 ++++ .../tasks/sapnote/3562919/09-disable-ksm.yml | 9 ++++ .../sapnote/3562919/10-assert-pidmax.yml | 10 ++++ .../sapnote/3562919/10-increase-pidmax.yml | 10 ++++ .../tasks/sapnote/3562919/11-assert-tsx.yml | 9 ++++ .../tasks/sapnote/3562919/11-enable-tsx.yml | 9 ++++ .../tasks/sapnote/assert-3562919.yml | 52 +++++++++++++++++++ .../sap_hana_preconfigure/vars/RedHat_10.yml | 8 +-- 25 files changed, 322 insertions(+), 4 deletions(-) create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml create mode 100644 roles/sap_hana_preconfigure/tasks/sapnote/assert-3562919.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919.yml new file mode 100644 index 000000000..78dec9ec3 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919.yml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: Apache-2.0 +--- +- name: Configure - Display SAP note number 3562919 and its version + ansible.builtin.debug: + msg: "SAP note {{ (__sap_hana_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562919$') | first).number }} + (version {{ (__sap_hana_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562919$') | first).version }}): SAP HANA settings for RHEL 8" + +- name: Import tasks from '3562919/01-configure-selinux.yml' + ansible.builtin.import_tasks: 3562919/01-configure-selinux.yml + when: + - sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_01|d(false) + - sap_hana_preconfigure_modify_selinux_labels + +- name: Import tasks from '3562919/02-configure-tuned.yml' + ansible.builtin.import_tasks: 3562919/02-configure-tuned.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_02|d(false) + +- name: Import tasks from '3562919/03-disable-abrt-coredumps-kdump.yml' + ansible.builtin.import_tasks: 3562919/03-disable-abrt-coredumps-kdump.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_03|d(false) + +- name: Import tasks from '3562919/04-turn-off-auto-numa-balancing.yml' + ansible.builtin.import_tasks: 3562919/04-turn-off-auto-numa-balancing.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_04|d(false) + +- name: Import tasks from '3562919/05-configure-thp.yml' + ansible.builtin.import_tasks: 3562919/05-configure-thp.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_05|d(false) + +- name: Import tasks from '3562919/06-configure-c-states-for-lower-latency.yml' + ansible.builtin.import_tasks: 3562919/06-configure-c-states-for-lower-latency.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_06|d(false) + +- name: Import tasks from '3562919/07-configure-cpu-governor.yml' + ansible.builtin.import_tasks: 3562919/07-configure-cpu-governor.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_07|d(false) + +- name: Import tasks from '3562919/08-configure-epb.yml' + ansible.builtin.import_tasks: 3562919/08-configure-epb.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_08|d(false) + +- name: Import tasks from '3562919/09-disable-ksm.yml' + ansible.builtin.import_tasks: 3562919/09-disable-ksm.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_09|d(false) + +- name: Import tasks from '3562919/10-increase-pidmax.yml' + ansible.builtin.import_tasks: 3562919/10-increase-pidmax.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_10|d(false) + +- name: Import tasks from '3562919/11-enable-tsx.yml' + ansible.builtin.import_tasks: 3562919/11-enable-tsx.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_11|d(false) diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml new file mode 100644 index 000000000..97f88397d --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108302-1 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 1: Configure SELinux" + +- name: Import ../../RedHat/generic/assert-selinux.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-selinux.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml new file mode 100644 index 000000000..2a7e7699d --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108302-1 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 1: Configure SELinux" + +- name: Import ../../RedHat/generic/configure-selinux.yml + ansible.builtin.import_tasks: ../../RedHat/generic/configure-selinux.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml new file mode 100644 index 000000000..547775cdf --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108302-2 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 2: Configure tuned to use profile sap-hana" + +- name: Import ../../RedHat/generic/assert-tuned.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-tuned.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml new file mode 100644 index 000000000..a14675024 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108302-2 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 2: Configure tuned to use profile for SAP HANA" + +- name: Import ../../RedHat/generic/configure-tuned.yml + ansible.builtin.import_tasks: ../../RedHat/generic/configure-tuned.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml new file mode 100644 index 000000000..3e4d41aee --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108302-3 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 3: Disable kdump" + +- name: Import ../../RedHat/generic/assert-kdump.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-kdump.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml new file mode 100644 index 000000000..6c05d9c8b --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108302-3 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 3: Disable kdump" + +- name: Import ../../RedHat/generic/disable-kdump.yml + ansible.builtin.import_tasks: ../../RedHat/generic/disable-kdump.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml new file mode 100644 index 000000000..5519d38f2 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "kernel.numa_balancing = 0" +- name: Assert 3108302-4 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 4: Turn off auto-numa balancing" + +- name: Import ../../RedHat/generic/assert-auto-numa-balancing.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-auto-numa-balancing.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml new file mode 100644 index 000000000..fd8d81b6a --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "kernel.numa_balancing = 0" +- name: Configure 3108302-4 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 4: Turn off auto-numa balancing" + +- name: Import ../../RedHat/generic/turn-off-auto-numa-balancing.yml + ansible.builtin.import_tasks: ../../RedHat/generic/turn-off-auto-numa-balancing.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml new file mode 100644 index 000000000..9573a190e --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "transparent_hugepages=never" +- name: Assert 3108302-5 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 5: Configure Transparent Hugepages (THP)" + +- name: Import ../../RedHat/generic/assert-thp.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-thp.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml new file mode 100644 index 000000000..f9d1fa746 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "transparent_hugepages=never" or "transparent_hugepages=madvise" +- name: Configure 3108302-5 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 5: Configure Transparent Hugepages (THP)" + +- name: Import ../../RedHat/generic/configure-thp.yml + ansible.builtin.import_tasks: ../../RedHat/generic/configure-thp.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml new file mode 100644 index 000000000..b2e2792d0 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "force_latency=70" +- name: Assert 3108302-6 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 6: Configure C-States for lower latency (x86_64 platform only)" + +- name: Import ../../RedHat/generic/assert-c-states-for-lower-latency.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-c-states-for-lower-latency.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml new file mode 100644 index 000000000..dcd9ffe52 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "force_latency=70" +- name: Configure 3108302-6 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 6: Configure C-States for lower latency (x86_64 platform only)" + +- name: Import ../../RedHat/generic/configure-c-states-for-lower-latency.yml + ansible.builtin.import_tasks: ../../RedHat/generic/configure-c-states-for-lower-latency.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml new file mode 100644 index 000000000..16e74941d --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "governor=performance" +# in included tuned profile throughput-performance +- name: Assert 3108302-7 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 7: Configure CPU Governor for performance (x86_64 platform only)" + +- name: Import ../../RedHat/generic/assert-cpu-governor-for-performance.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-cpu-governor-for-performance.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml new file mode 100644 index 000000000..788422636 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "governor=performance" +# in included tuned profile throughput-performance +- name: Configure 3108302-7 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 7: Configure CPU Governor for performance (x86_64 platform only)" + +- name: Import ../../RedHat/generic/configure-cpu-governor-for-performance.yml + ansible.builtin.import_tasks: ../../RedHat/generic/configure-cpu-governor-for-performance.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml new file mode 100644 index 000000000..93c6988d7 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "energy_perf_bias=performance" +# in included tuned profile throughput-performance +- name: Assert 3108302-8 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 8: Configure Energy Performance Bias (EPB, x86_64 platform only)" + +- name: Import ../../RedHat/generic/assert-epb.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-epb.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml new file mode 100644 index 000000000..65a062565 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +# can be configured by tuned profile sap-hana, entry "energy_perf_bias=performance" +# in included tuned profile throughput-performance +- name: Configure 3108302-8 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 8: Configure Energy Performance Bias (EPB, x86_64 platform only)" + +- name: Import ../../RedHat/generic/configure-epb.yml + ansible.builtin.import_tasks: ../../RedHat/generic/configure-epb.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml new file mode 100644 index 000000000..773b89713 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108302-9 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 9: Disable Kernel samepage merging (KSM)" + +- name: Import ../../RedHat/generic/assert-ksm.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-ksm.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml new file mode 100644 index 000000000..46e6011c3 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108302-9 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 9: Disable Kernel samepage merging (KSM)" + +- name: Import ../../RedHat/generic/disable-ksm.yml + ansible.builtin.import_tasks: ../../RedHat/generic/disable-ksm.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml new file mode 100644 index 000000000..e8599f69b --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108302-10 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 10: Increase kernel.pidmax" + +- name: Notify about where 'kernel.pidmax' is asserted + ansible.builtin.debug: + msg: "INFO: Kernel parameter 'kernel.pid_max' is already asserted by role 'sap_general_preconfigure' if necessary." diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml new file mode 100644 index 000000000..64c7e4041 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108302-10 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 10: Increase kernel.pidmax" + +- name: Notify about where 'kernel.pid_max' is set + ansible.builtin.debug: + msg: "Kernel parameter 'kernel.pid_max' is already set by role 'sap_general_preconfigure' if necessary." diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml new file mode 100644 index 000000000..f6c4e663f --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Assert 3108302-11 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 11: Enable TSX (Intel Transactional Synchronization Extensions)" + +- name: Import ../../RedHat/generic/assert-tsx.yml + ansible.builtin.import_tasks: ../../RedHat/generic/assert-tsx.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml new file mode 100644 index 000000000..56d81f745 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 +--- + +- name: Configure 3108302-11 + ansible.builtin.debug: + msg: "SAP note 3108302 Step 11: Enable TSX (Intel Transactional Synchronization Extensions)" + +- name: Import ../../RedHat/generic/enable-tsx.yml + ansible.builtin.import_tasks: ../../RedHat/generic/enable-tsx.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/assert-3562919.yml b/roles/sap_hana_preconfigure/tasks/sapnote/assert-3562919.yml new file mode 100644 index 000000000..f651bf786 --- /dev/null +++ b/roles/sap_hana_preconfigure/tasks/sapnote/assert-3562919.yml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: Apache-2.0 +--- +- name: Assert - Display SAP note number 3562919 and its version + ansible.builtin.debug: + msg: "SAP note {{ (__sap_hana_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562919$') | first).number }} + (version {{ (__sap_hana_preconfigure_sapnotes_versions | selectattr('number', 'match', '^3562919$') | first).version }}): SAP HANA settings for RHEL 8" + +- name: Import tasks from '3562919/01-assert-selinux.yml' + ansible.builtin.import_tasks: 3562919/01-assert-selinux.yml + when: + - sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_01|d(false) + - sap_hana_preconfigure_modify_selinux_labels + +- name: Import tasks from '3562919/02-assert-tuned.yml' + ansible.builtin.import_tasks: 3562919/02-assert-tuned.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_02|d(false) + +- name: Import tasks from '3562919/03-assert-abrt-coredumps-kdump.yml' + ansible.builtin.import_tasks: 3562919/03-assert-abrt-coredumps-kdump.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_03|d(false) + +- name: Import tasks from '3562919/04-assert-auto-numa-balancing.yml' + ansible.builtin.import_tasks: 3562919/04-assert-auto-numa-balancing.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_04|d(false) + +- name: Import tasks from '3562919/05-assert-thp.yml' + ansible.builtin.import_tasks: 3562919/05-assert-thp.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_05|d(false) + +- name: Import tasks from '3562919/06-assert-c-states-for-lower-latency.yml' + ansible.builtin.import_tasks: 3562919/06-assert-c-states-for-lower-latency.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_06|d(false) + +- name: Import tasks from '3562919/07-assert-cpu-governor.yml' + ansible.builtin.import_tasks: 3562919/07-assert-cpu-governor.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_07|d(false) + +- name: Import tasks from '3562919/08-assert-epb.yml' + ansible.builtin.import_tasks: 3562919/08-assert-epb.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_08|d(false) + +- name: Import tasks from '3562919/09-assert-ksm.yml' + ansible.builtin.import_tasks: 3562919/09-assert-ksm.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_09|d(false) + +- name: Import tasks from '3562919/10-assert-pidmax.yml' + ansible.builtin.import_tasks: 3562919/10-assert-pidmax.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_10|d(false) + +- name: Import tasks from '3562919/11-assert-tsx.yml' + ansible.builtin.import_tasks: 3562919/11-assert-tsx.yml + when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_3562919_11|d(false) diff --git a/roles/sap_hana_preconfigure/vars/RedHat_10.yml b/roles/sap_hana_preconfigure/vars/RedHat_10.yml index 71a1c0156..4ae6d7baf 100644 --- a/roles/sap_hana_preconfigure/vars/RedHat_10.yml +++ b/roles/sap_hana_preconfigure/vars/RedHat_10.yml @@ -17,13 +17,13 @@ __sap_hana_preconfigure_req_repos_redhat_10_0_ppc64le: # required SAP notes for RHEL 10: __sap_hana_preconfigure_sapnotes_versions_x86_64: - - { number: '3108302', version: '11' } + - { number: '3562919', version: '1' } - { number: '2382421', version: '47' } - { number: '3024346', version: '11' } __sap_hana_preconfigure_sapnotes_versions_ppc64le: - { number: '2055470', version: '90' } - - { number: '3108302', version: '11' } + - { number: '3562919', version: '1' } - { number: '2382421', version: '47' } - { number: '3024346', version: '11' } @@ -68,7 +68,7 @@ __sap_hana_preconfigure_packages: - lm_sensors # package nfs-utils: support utilities for NFS, for supportability) - nfs-utils -# SAP NOTE 3108302: +# SAP NOTE 3562919: - tuned-profiles-sap-hana __sap_hana_preconfigure_packages_min_install: @@ -96,7 +96,7 @@ __sap_hana_preconfigure_packages_min_install: # - lm_sensors # package nfs-utils: support utilities for NFS, for supportability) # - nfs-utils -# SAP NOTE 3108302: +# SAP NOTE 3562919: - tuned-profiles-sap-hana # URL for the IBM Power Systems service and productivity tools, see https://www.ibm.com/support/pages/service-and-productivity-tools From 58831c15c144a5bdb5ddb16b7a3e013a853b0a43 Mon Sep 17 00:00:00 2001 From: Bernd Finger Date: Wed, 22 Jan 2025 15:19:39 +0100 Subject: [PATCH 4/6] sap_general_preconfigure: Also change the SAP note numbers in task files Signed-off-by: Bernd Finger --- .../tasks/sapnote/3562909/02-assert-selinux.yml | 4 ++-- .../tasks/sapnote/3562909/02-configure-selinux.yml | 4 ++-- .../tasks/sapnote/3562909/03-assert-hostname.yml | 4 ++-- .../tasks/sapnote/3562909/03-configure-hostname.yml | 4 ++-- .../tasks/sapnote/3562909/04-assert-network-time-and-date.yml | 4 ++-- .../sapnote/3562909/04-configure-network-time-and-date.yml | 4 ++-- .../tasks/sapnote/3562909/05-assert-firewall.yml | 4 ++-- .../tasks/sapnote/3562909/05-configure-firewall.yml | 4 ++-- .../tasks/sapnote/3562909/06-assert-uuidd.yml | 4 ++-- .../tasks/sapnote/3562909/06-configure-uuidd.yml | 4 ++-- .../tasks/sapnote/3562909/07-assert-tmpfs.yml | 4 ++-- .../tasks/sapnote/3562909/07-configure-tmpfs.yml | 4 ++-- .../sapnote/3562909/08-assert-linux-kernel-parameters.yml | 4 ++-- .../sapnote/3562909/08-configure-linux-kernel-parameters.yml | 4 ++-- .../sapnote/3562909/09-assert-process-resource-limits.yml | 4 ++-- .../sapnote/3562909/09-configure-process-resource-limits.yml | 4 ++-- .../tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml | 4 ++-- .../tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml | 4 ++-- 18 files changed, 36 insertions(+), 36 deletions(-) diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml index 7782afee4..0513f28ac 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-assert-selinux.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-2 +- name: Assert 3562909-2 ansible.builtin.debug: - msg: "SAP note 3108316 Step 2: Configure SELinux" + msg: "SAP note 3562909 Step 2: Configure SELinux" tags: - sap_general_preconfigure_selinux diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml index 8bf1b2342..a4172ad75 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/02-configure-selinux.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-2 +- name: Configure 3562909-2 ansible.builtin.debug: - msg: "SAP note 3108316 Step 2: Configure SELinux" + msg: "SAP note 3562909 Step 2: Configure SELinux" tags: - sap_general_preconfigure_selinux diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml index b83b7a146..8ca01d112 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-assert-hostname.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-3 +- name: Assert 3562909-3 ansible.builtin.debug: - msg: "SAP note 3108316 Step 3: Configure Hostname" + msg: "SAP note 3562909 Step 3: Configure Hostname" tags: - sap_general_preconfigure_hostname - sap_general_preconfigure_etc_hosts diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml index 15b884b9d..d586c0119 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/03-configure-hostname.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-3 +- name: Configure 3562909-3 ansible.builtin.debug: - msg: "SAP note 3108316 Step 3: Configure Hostname" + msg: "SAP note 3562909 Step 3: Configure Hostname" tags: - sap_general_preconfigure_hostname - sap_general_preconfigure_etc_hosts diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml index e87a2d456..748bf8e11 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-assert-network-time-and-date.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-4 +- name: Assert 3562909-4 ansible.builtin.debug: - msg: "SAP note 3108316 Step 4: Configure Network Time and Date" + msg: "SAP note 3562909 Step 4: Configure Network Time and Date" tags: - sap_general_preconfigure_network_time_and_date diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml index d369d843d..a3f3c7b5d 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/04-configure-network-time-and-date.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-4 +- name: Configure 3562909-4 ansible.builtin.debug: - msg: "SAP note 3108316 Step 4: Configure Network Time and Date" + msg: "SAP note 3562909 Step 4: Configure Network Time and Date" tags: - sap_general_preconfigure_network_time_and_date diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml index 74dd36c79..c3d40452d 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-assert-firewall.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-5 +- name: Assert 3562909-5 ansible.builtin.debug: - msg: "SAP note 3108316 Step 5: Configure the Firewall" + msg: "SAP note 3562909 Step 5: Configure the Firewall" tags: - sap_general_preconfigure_firewall diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml index e69ab95d5..18ee27f7c 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/05-configure-firewall.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-5 +- name: Configure 3562909-5 ansible.builtin.debug: - msg: "SAP note 3108316 Step 5: Configure the Firewall" + msg: "SAP note 3562909 Step 5: Configure the Firewall" tags: - sap_general_preconfigure_firewall diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml index e1fb78b88..33bd29d8b 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-assert-uuidd.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-6 +- name: Assert 3562909-6 ansible.builtin.debug: - msg: "SAP note 3108316 Step 6: Configure uuidd" + msg: "SAP note 3562909 Step 6: Configure uuidd" tags: - sap_general_preconfigure_configure_uuidd diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml index 30be6c160..a2cfffca3 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/06-configure-uuidd.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-6 +- name: Configure 3562909-6 ansible.builtin.debug: - msg: "SAP note 3108316 Step 6: Configure uuidd" + msg: "SAP note 3562909 Step 6: Configure uuidd" tags: - sap_general_preconfigure_configure_uuidd diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml index f64c621f6..48548d2e6 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-assert-tmpfs.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-7 +- name: Assert 3562909-7 ansible.builtin.debug: - msg: "SAP note 3108316 Step 7: Configure tmpfs; + msg: "SAP note 3562909 Step 7: Configure tmpfs; memtotal_mb = {{ ansible_memtotal_mb }}; swaptotal_mb = {{ ansible_swaptotal_mb }}; sap_general_preconfigure_size_of_tmpfs_gb = {{ sap_general_preconfigure_size_of_tmpfs_gb }}" diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml index 44f130211..99c61abfb 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/07-configure-tmpfs.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-7 +- name: Configure 3562909-7 ansible.builtin.debug: - msg: "SAP note 3108316 Step 7: Configure tmpfs; + msg: "SAP note 3562909 Step 7: Configure tmpfs; memtotal_mb = {{ ansible_memtotal_mb }}; swaptotal_mb = {{ ansible_swaptotal_mb }}; sap_general_preconfigure_size_of_tmpfs_gb = {{ sap_general_preconfigure_size_of_tmpfs_gb }}" diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml index 7160b861e..6ef6cadda 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-assert-linux-kernel-parameters.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-8 +- name: Assert 3562909-8 ansible.builtin.debug: - msg: "SAP note 3108316 Step 8: Configure Linux Kernel Parameters" + msg: "SAP note 3562909 Step 8: Configure Linux Kernel Parameters" tags: - sap_general_preconfigure_kernel_parameters diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml index b07996fc6..29b99c597 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/08-configure-linux-kernel-parameters.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-8 +- name: Configure 3562909-8 ansible.builtin.debug: - msg: "SAP note 3108316 Step 8: Configure Linux Kernel Parameters" + msg: "SAP note 3562909 Step 8: Configure Linux Kernel Parameters" tags: - sap_general_preconfigure_kernel_parameters diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml index 2f31d63de..afd0f02d2 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-assert-process-resource-limits.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-9 +- name: Assert 3562909-9 ansible.builtin.debug: - msg: "SAP note 3108316 Step 9: Configure Process Resource Limits" + msg: "SAP note 3562909 Step 9: Configure Process Resource Limits" tags: - sap_general_preconfigure_nproc_limits diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml index 5512d2ac5..95d2c6661 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/09-configure-process-resource-limits.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-9 +- name: Configure 3562909-9 ansible.builtin.debug: - msg: "SAP note 3108316 Step 9: Configure Process Resource Limits" + msg: "SAP note 3562909 Step 9: Configure Process Resource Limits" tags: - sap_general_preconfigure_nproc_limits diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml index 4a56c51e7..c0e42ed87 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-assert-systemd-tmpfiles.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108316-10 +- name: Assert 3562909-10 ansible.builtin.debug: - msg: "SAP note 3108316 Step 10: Configure systemd-tmpfiles" + msg: "SAP note 3562909 Step 10: Configure systemd-tmpfiles" tags: - sap_general_preconfigure_systemd_tmpfiles diff --git a/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml index 41de6a789..bde2ef652 100644 --- a/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml +++ b/roles/sap_general_preconfigure/tasks/sapnote/3562909/10-configure-systemd-tmpfiles.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108316-10 +- name: Configure 3562909-10 ansible.builtin.debug: - msg: "SAP note 3108316 Step 10: Configure systemd-tmpfiles" + msg: "SAP note 3562909 Step 10: Configure systemd-tmpfiles" tags: - sap_general_preconfigure_systemd_tmpfiles From c2d8f8ae5a9afcce447a85eea487d30381892632 Mon Sep 17 00:00:00 2001 From: Bernd Finger Date: Wed, 22 Jan 2025 15:22:29 +0100 Subject: [PATCH 5/6] sap_hana_preconfigure: Also change the SAP note numbers in task files Signed-off-by: Bernd Finger --- .../tasks/sapnote/3562919/01-assert-selinux.yml | 4 ++-- .../tasks/sapnote/3562919/01-configure-selinux.yml | 4 ++-- .../tasks/sapnote/3562919/02-assert-tuned.yml | 4 ++-- .../tasks/sapnote/3562919/02-configure-tuned.yml | 4 ++-- .../tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml | 4 ++-- .../tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml | 4 ++-- .../tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml | 4 ++-- .../tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml | 4 ++-- .../tasks/sapnote/3562919/05-assert-thp.yml | 4 ++-- .../tasks/sapnote/3562919/05-configure-thp.yml | 4 ++-- .../sapnote/3562919/06-assert-c-states-for-lower-latency.yml | 4 ++-- .../3562919/06-configure-c-states-for-lower-latency.yml | 4 ++-- .../tasks/sapnote/3562919/07-assert-cpu-governor.yml | 4 ++-- .../tasks/sapnote/3562919/07-configure-cpu-governor.yml | 4 ++-- .../tasks/sapnote/3562919/08-assert-epb.yml | 4 ++-- .../tasks/sapnote/3562919/08-configure-epb.yml | 4 ++-- .../tasks/sapnote/3562919/09-assert-ksm.yml | 4 ++-- .../tasks/sapnote/3562919/09-disable-ksm.yml | 4 ++-- .../tasks/sapnote/3562919/10-assert-pidmax.yml | 4 ++-- .../tasks/sapnote/3562919/10-increase-pidmax.yml | 4 ++-- .../tasks/sapnote/3562919/11-assert-tsx.yml | 4 ++-- .../tasks/sapnote/3562919/11-enable-tsx.yml | 4 ++-- 22 files changed, 44 insertions(+), 44 deletions(-) diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml index 97f88397d..f0bbd59b3 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-assert-selinux.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108302-1 +- name: Assert 3562919-1 ansible.builtin.debug: - msg: "SAP note 3108302 Step 1: Configure SELinux" + msg: "SAP note 3562919 Step 1: Configure SELinux" - name: Import ../../RedHat/generic/assert-selinux.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-selinux.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml index 2a7e7699d..3f08527c0 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/01-configure-selinux.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108302-1 +- name: Configure 3562919-1 ansible.builtin.debug: - msg: "SAP note 3108302 Step 1: Configure SELinux" + msg: "SAP note 3562919 Step 1: Configure SELinux" - name: Import ../../RedHat/generic/configure-selinux.yml ansible.builtin.import_tasks: ../../RedHat/generic/configure-selinux.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml index 547775cdf..15e2fd397 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-assert-tuned.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108302-2 +- name: Assert 3562919-2 ansible.builtin.debug: - msg: "SAP note 3108302 Step 2: Configure tuned to use profile sap-hana" + msg: "SAP note 3562919 Step 2: Configure tuned to use profile sap-hana" - name: Import ../../RedHat/generic/assert-tuned.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-tuned.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml index a14675024..e129bc93a 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/02-configure-tuned.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108302-2 +- name: Configure 3562919-2 ansible.builtin.debug: - msg: "SAP note 3108302 Step 2: Configure tuned to use profile for SAP HANA" + msg: "SAP note 3562919 Step 2: Configure tuned to use profile for SAP HANA" - name: Import ../../RedHat/generic/configure-tuned.yml ansible.builtin.import_tasks: ../../RedHat/generic/configure-tuned.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml index 3e4d41aee..d8edc1867 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-assert-abrt-coredumps-kdump.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108302-3 +- name: Assert 3562919-3 ansible.builtin.debug: - msg: "SAP note 3108302 Step 3: Disable kdump" + msg: "SAP note 3562919 Step 3: Disable kdump" - name: Import ../../RedHat/generic/assert-kdump.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-kdump.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml index 6c05d9c8b..c195ae900 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/03-disable-abrt-coredumps-kdump.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108302-3 +- name: Configure 3562919-3 ansible.builtin.debug: - msg: "SAP note 3108302 Step 3: Disable kdump" + msg: "SAP note 3562919 Step 3: Disable kdump" - name: Import ../../RedHat/generic/disable-kdump.yml ansible.builtin.import_tasks: ../../RedHat/generic/disable-kdump.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml index 5519d38f2..ad122e8dd 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-assert-auto-numa-balancing.yml @@ -2,9 +2,9 @@ --- # can be configured by tuned profile sap-hana, entry "kernel.numa_balancing = 0" -- name: Assert 3108302-4 +- name: Assert 3562919-4 ansible.builtin.debug: - msg: "SAP note 3108302 Step 4: Turn off auto-numa balancing" + msg: "SAP note 3562919 Step 4: Turn off auto-numa balancing" - name: Import ../../RedHat/generic/assert-auto-numa-balancing.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-auto-numa-balancing.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml index fd8d81b6a..d365617ca 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/04-turn-off-auto-numa-balancing.yml @@ -2,9 +2,9 @@ --- # can be configured by tuned profile sap-hana, entry "kernel.numa_balancing = 0" -- name: Configure 3108302-4 +- name: Configure 3562919-4 ansible.builtin.debug: - msg: "SAP note 3108302 Step 4: Turn off auto-numa balancing" + msg: "SAP note 3562919 Step 4: Turn off auto-numa balancing" - name: Import ../../RedHat/generic/turn-off-auto-numa-balancing.yml ansible.builtin.import_tasks: ../../RedHat/generic/turn-off-auto-numa-balancing.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml index 9573a190e..22281d844 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-assert-thp.yml @@ -2,9 +2,9 @@ --- # can be configured by tuned profile sap-hana, entry "transparent_hugepages=never" -- name: Assert 3108302-5 +- name: Assert 3562919-5 ansible.builtin.debug: - msg: "SAP note 3108302 Step 5: Configure Transparent Hugepages (THP)" + msg: "SAP note 3562919 Step 5: Configure Transparent Hugepages (THP)" - name: Import ../../RedHat/generic/assert-thp.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-thp.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml index f9d1fa746..868335daa 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/05-configure-thp.yml @@ -2,9 +2,9 @@ --- # can be configured by tuned profile sap-hana, entry "transparent_hugepages=never" or "transparent_hugepages=madvise" -- name: Configure 3108302-5 +- name: Configure 3562919-5 ansible.builtin.debug: - msg: "SAP note 3108302 Step 5: Configure Transparent Hugepages (THP)" + msg: "SAP note 3562919 Step 5: Configure Transparent Hugepages (THP)" - name: Import ../../RedHat/generic/configure-thp.yml ansible.builtin.import_tasks: ../../RedHat/generic/configure-thp.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml index b2e2792d0..0b75df0e3 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-assert-c-states-for-lower-latency.yml @@ -2,9 +2,9 @@ --- # can be configured by tuned profile sap-hana, entry "force_latency=70" -- name: Assert 3108302-6 +- name: Assert 3562919-6 ansible.builtin.debug: - msg: "SAP note 3108302 Step 6: Configure C-States for lower latency (x86_64 platform only)" + msg: "SAP note 3562919 Step 6: Configure C-States for lower latency (x86_64 platform only)" - name: Import ../../RedHat/generic/assert-c-states-for-lower-latency.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-c-states-for-lower-latency.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml index dcd9ffe52..a4983c973 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/06-configure-c-states-for-lower-latency.yml @@ -2,9 +2,9 @@ --- # can be configured by tuned profile sap-hana, entry "force_latency=70" -- name: Configure 3108302-6 +- name: Configure 3562919-6 ansible.builtin.debug: - msg: "SAP note 3108302 Step 6: Configure C-States for lower latency (x86_64 platform only)" + msg: "SAP note 3562919 Step 6: Configure C-States for lower latency (x86_64 platform only)" - name: Import ../../RedHat/generic/configure-c-states-for-lower-latency.yml ansible.builtin.import_tasks: ../../RedHat/generic/configure-c-states-for-lower-latency.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml index 16e74941d..d91f7712a 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-assert-cpu-governor.yml @@ -3,9 +3,9 @@ # can be configured by tuned profile sap-hana, entry "governor=performance" # in included tuned profile throughput-performance -- name: Assert 3108302-7 +- name: Assert 3562919-7 ansible.builtin.debug: - msg: "SAP note 3108302 Step 7: Configure CPU Governor for performance (x86_64 platform only)" + msg: "SAP note 3562919 Step 7: Configure CPU Governor for performance (x86_64 platform only)" - name: Import ../../RedHat/generic/assert-cpu-governor-for-performance.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-cpu-governor-for-performance.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml index 788422636..444b2114a 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/07-configure-cpu-governor.yml @@ -3,9 +3,9 @@ # can be configured by tuned profile sap-hana, entry "governor=performance" # in included tuned profile throughput-performance -- name: Configure 3108302-7 +- name: Configure 3562919-7 ansible.builtin.debug: - msg: "SAP note 3108302 Step 7: Configure CPU Governor for performance (x86_64 platform only)" + msg: "SAP note 3562919 Step 7: Configure CPU Governor for performance (x86_64 platform only)" - name: Import ../../RedHat/generic/configure-cpu-governor-for-performance.yml ansible.builtin.import_tasks: ../../RedHat/generic/configure-cpu-governor-for-performance.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml index 93c6988d7..63d923756 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-assert-epb.yml @@ -3,9 +3,9 @@ # can be configured by tuned profile sap-hana, entry "energy_perf_bias=performance" # in included tuned profile throughput-performance -- name: Assert 3108302-8 +- name: Assert 3562919-8 ansible.builtin.debug: - msg: "SAP note 3108302 Step 8: Configure Energy Performance Bias (EPB, x86_64 platform only)" + msg: "SAP note 3562919 Step 8: Configure Energy Performance Bias (EPB, x86_64 platform only)" - name: Import ../../RedHat/generic/assert-epb.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-epb.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml index 65a062565..8b7c3c0c6 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/08-configure-epb.yml @@ -3,9 +3,9 @@ # can be configured by tuned profile sap-hana, entry "energy_perf_bias=performance" # in included tuned profile throughput-performance -- name: Configure 3108302-8 +- name: Configure 3562919-8 ansible.builtin.debug: - msg: "SAP note 3108302 Step 8: Configure Energy Performance Bias (EPB, x86_64 platform only)" + msg: "SAP note 3562919 Step 8: Configure Energy Performance Bias (EPB, x86_64 platform only)" - name: Import ../../RedHat/generic/configure-epb.yml ansible.builtin.import_tasks: ../../RedHat/generic/configure-epb.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml index 773b89713..a3bb08d2b 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-assert-ksm.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108302-9 +- name: Assert 3562919-9 ansible.builtin.debug: - msg: "SAP note 3108302 Step 9: Disable Kernel samepage merging (KSM)" + msg: "SAP note 3562919 Step 9: Disable Kernel samepage merging (KSM)" - name: Import ../../RedHat/generic/assert-ksm.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-ksm.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml index 46e6011c3..9bc27d709 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/09-disable-ksm.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108302-9 +- name: Configure 3562919-9 ansible.builtin.debug: - msg: "SAP note 3108302 Step 9: Disable Kernel samepage merging (KSM)" + msg: "SAP note 3562919 Step 9: Disable Kernel samepage merging (KSM)" - name: Import ../../RedHat/generic/disable-ksm.yml ansible.builtin.import_tasks: ../../RedHat/generic/disable-ksm.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml index e8599f69b..b08e542e2 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-assert-pidmax.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108302-10 +- name: Assert 3562919-10 ansible.builtin.debug: - msg: "SAP note 3108302 Step 10: Increase kernel.pidmax" + msg: "SAP note 3562919 Step 10: Increase kernel.pidmax" - name: Notify about where 'kernel.pidmax' is asserted ansible.builtin.debug: diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml index 64c7e4041..2d7ac75a6 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/10-increase-pidmax.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108302-10 +- name: Configure 3562919-10 ansible.builtin.debug: - msg: "SAP note 3108302 Step 10: Increase kernel.pidmax" + msg: "SAP note 3562919 Step 10: Increase kernel.pidmax" - name: Notify about where 'kernel.pid_max' is set ansible.builtin.debug: diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml index f6c4e663f..6009a2725 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-assert-tsx.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Assert 3108302-11 +- name: Assert 3562919-11 ansible.builtin.debug: - msg: "SAP note 3108302 Step 11: Enable TSX (Intel Transactional Synchronization Extensions)" + msg: "SAP note 3562919 Step 11: Enable TSX (Intel Transactional Synchronization Extensions)" - name: Import ../../RedHat/generic/assert-tsx.yml ansible.builtin.import_tasks: ../../RedHat/generic/assert-tsx.yml diff --git a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml index 56d81f745..2558804eb 100644 --- a/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml +++ b/roles/sap_hana_preconfigure/tasks/sapnote/3562919/11-enable-tsx.yml @@ -1,9 +1,9 @@ # SPDX-License-Identifier: Apache-2.0 --- -- name: Configure 3108302-11 +- name: Configure 3562919-11 ansible.builtin.debug: - msg: "SAP note 3108302 Step 11: Enable TSX (Intel Transactional Synchronization Extensions)" + msg: "SAP note 3562919 Step 11: Enable TSX (Intel Transactional Synchronization Extensions)" - name: Import ../../RedHat/generic/enable-tsx.yml ansible.builtin.import_tasks: ../../RedHat/generic/enable-tsx.yml From f075adb264cec0f37a7ed042a5bd52ac36921024 Mon Sep 17 00:00:00 2001 From: Bernd Finger Date: Wed, 22 Jan 2025 16:52:21 +0100 Subject: [PATCH 6/6] sap_hana_preconfigure: openssl11 is not needed for RHEL 10 Signed-off-by: Bernd Finger --- roles/sap_hana_preconfigure/vars/RedHat_10.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/roles/sap_hana_preconfigure/vars/RedHat_10.yml b/roles/sap_hana_preconfigure/vars/RedHat_10.yml index 4ae6d7baf..555896e8d 100644 --- a/roles/sap_hana_preconfigure/vars/RedHat_10.yml +++ b/roles/sap_hana_preconfigure/vars/RedHat_10.yml @@ -55,9 +55,7 @@ __sap_hana_preconfigure_packages: - xorg-x11-xauth # package chkconfig: needed by hdblcm to be able to access /etc/init.d - chkconfig -# package compat-openssl11: currently not available in RHEL 10 -# - compat-openssl11 -# package libxcrypt-compat: needed SAP HANA and also by sapstartsrv on RHEL 9: +# package libxcrypt-compat: needed SAP HANA and also by sapstartsrv on RHEL 10: # - libxcrypt-compat # now installed by role sap_general_preconfigure, see also SAP note 3108316, version 4. # For support purposes: # package graphwiz: graph visualization tools, for supportability) @@ -83,10 +81,8 @@ __sap_hana_preconfigure_packages_min_install: - numactl - PackageKit-gtk3-module - xorg-x11-xauth -# package compat-openssl11: needed for HANA scale-out and when configuring HANA backup on Azure - - compat-openssl11 -# required for SAP HANA on RHEL 9: - - libxcrypt-compat +# package libxcrypt-compat: needed SAP HANA and also by sapstartsrv on RHEL 10: +# - libxcrypt-compat # now installed by role sap_general_preconfigure, see also SAP note 3108316, version 4. # For support purposes: # package graphwiz: graph visualization tools, for supportability) # - graphviz