Skip to content

myllynen/rhel-sap-automation

Repository files navigation

RHEL & SAP Automation

License: GPLv2 License: GPLv3

Ansible playbooks to automate RHEL & SAP setup.

Playbooks

Quick Example

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

Ansible Role Description

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

See also https://github.com/myllynen/rhel-ansible-roles.

License

GPLv2+

About

Ansible playbooks to automate RHEL & SAP setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages