4.4. Configuring the system for SAP HANA and SAP ABAP Platform on the same host with RHEL System Roles for SAP
For configuring the system for SAP HANA and ABAP Platform, the steps are nearly identical to the steps described in the previous chapter.
Prerequisites
- You have system administrator access.
Procedure
- Make a backup of the system if you would like to preserve the original configuration of the server.
-
Configure your name resolution and
/etc/hostssettings according to your desired configuration. The RHEL System Roles for SAP can also be used to maintain your/etc/hostsfile (using the parameterssap_domainandsap_general_preconfigure_modify_etc_hosts) but for simplicity, we assume that your name resolution and the content of/etc/hostsare configured already. - Ensure that your release lock is set according to your needs and that you have enabled the desired repositories. The RHEL System Roles for SAP can also be used to set the release lock and enable the repos but for simplicity, we assume that these configuration settings are already done.
-
Create a file named
sap-vars.ymlwith the content shown in the previous section. It updates your system to the latest patch level. If this is not desired, setsap_general_preconfigure_updateandsap_hana_preconfigure_updatetofalse, comment out these lines by prepending them with#, or remove these two lines: Create a file named
sap-hana_abap.ymlwith the following content:--- - hosts: localhost collections: - redhat.sap_install become: true roles: - sap_general_preconfigure - sap_netweaver_preconfigure - sap_hana_preconfigureRun the following command:
# ansible-playbook sap-hana_abap.yml -e @sap-vars.ymlThis configures this system according to the applicable SAP notes for SAP HANA on RHEL 10. Run the role
sap_hana_preconfigureafter the rolesap_netweaver_preconfigureto ensure the configuration of certain specific settings for SAP HANA (e.g.kernel tunables).After the ansible-playbook command has finished, reboot the system:
# reboot