Ansible playbooks to automate RHEL & SAP setup.
- sap_hana_rhel_prepare.yml
- Prepare RHEL system for SAP HANA installation
- sap_hana_rhel_verify.yml
- Verify RHEL system configuration for SAP HANA
- sap_hana_setup.yml
- Setup SAP HANA
- sap_hana_setup_hsr.yml
- Setup SAP HANA HSR
- sap_hana_setup_pacemaker.yml
- Setup Pacemaker for SAP HANA
- sap_host_agent_setup.yml
- Setup SAP Host Agent (optional)
To prepare and verify RHEL, setup SAP HANA, setup SAP HANA HSR, and setup Pacemaker for SAP HANA, run the playbooks as follows. This example expects that basics like SSH keys and sudo to be configured and SAP HANA and SAP Host Agent installation files to be found from the expected locations.
Each playbook contains installation specific settings that should be adjusted as needed. Since some of the playbooks may reboot nodes the playbook are executed from a separate Control Node.
ansible-playbook -i saphana1.example.com,saphana2.example.com \
sap_hana_rhel_prepare.yml
ansible-playbook -i saphana1.example.com,saphana2.example.com \
sap_hana_rhel_verify.yml
ansible-playbook -i saphana1.example.com,saphana2.example.com \
sap_hana_setup.yml
ansible-playbook -i saphana1.example.com,saphana2.example.com \
sap_hana_setup_hsr.yml
ansible-playbook -i saphana1.example.com,saphana2.example.com \
sap_hana_setup_pacemaker.yml
ansible-playbook -i saphana1.example.com,saphana2.example.com \
sap_hana_rhel_verify.yml
The Ansible roles for SAP supported by Red Hat are included in the rhel-system-roles-sap RPM package.
See the following RHKB articles for the support status of the included roles:
The currently unsupported (as of 2022-06) SAP HANA HSR role is from the joint IBM/Red Hat/SAP/SUSE upstream repository:
The SAP HANA Pacemaker role included in this repository is based on the upstream dev branch currently (as of 2022-06) under active developement:
The older, now deprecated SAP RHEL roles can be found from:
The Red Hat Knowledge Base article explaining the details of RHEL & SAP HANA setup:
The playbooks have been tested with the RHEL 8.4 E4S roles and upstream versions as of 2022-06. Please be prepared to update the playbooks and especially the variables used when upgrading to newer versions.
See also https://github.com/myllynen/rhel-ansible-roles.
GPLv2+