Chapter 5. RHEL System Roles for SAP
RHEL System Roles for SAP is a set of roles executable by Ansible that can assist you with configuring your local or remote hosts (managed nodes) for the installation of SAP HANA.
5.1. Installing Ansible Engine Copy linkLink copied to clipboard!
RHEL subscriptions provide support for RHEL System Roles with Ansible Engine, which is available in the Ansible Engine repository.
Note that if you already have an Ansible Tower or Ansible Engine, you can skip this step and proceed to Installing RHEL System Roles for SAP.
Prerequisites
-
rootaccess
Procedure
Enable the Ansible repository:
subscription-manager repos \ --enable=ansible-2.9-for-rhel-8-$(uname -m)-rpms
# subscription-manager repos \ --enable=ansible-2.9-for-rhel-8-$(uname -m)-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the Ansible Engine:
yum install ansible
# yum install ansibleCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2. Installing RHEL System Roles for SAP Copy linkLink copied to clipboard!
RHEL System Roles for SAP include sap_general_preconfigure, sap_netweaver_preconfigure, and sap_hana_preconfigure. These roles can be used to configure the local or remote managed nodes.
Prerequisites
-
rootaccess You have installed Ansible Engine or Ansible Tower
For more information on how to Install Ansible Engine, see Installing Ansible Engine.
Procedure
Install RHEL System Roles for SAP:
yum install rhel-system-roles-sap
# yum install rhel-system-roles-sapCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.3. Server configuration with RHEL System Roles for SAP Copy linkLink copied to clipboard!
The RHEL System Roles for SAP provide a quick, easy, and consistent method for performing the configuration of your server according to applicable SAP notes for SAP HANA.
5.3.1. Configuring a local managed node Copy linkLink copied to clipboard!
If the Ansible Engine is installed on same host on which you want to install SAP HANA, perform the steps outlined in this procedure to configure your local managed node.
Prerequisites
-
rootaccess
Procedure
Create a file named
sap-hana.ymlwith the following content:Copy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantThe indentation and the use of spaces instead of tabs is essential for YAML files.
Run the
sap-hana.ymlAnsible playbook:ansible-playbook sap-hana.yml
# ansible-playbook sap-hana.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow This configures the local managed node according to the applicable SAP notes for SAP HANA.
- Reboot the server.
5.3.2. Configuring a remote managed node Copy linkLink copied to clipboard!
If you have a separate Ansible Engine Control Node, you can configure one or more managed nodes in an automated way.
Prerequisites
Configured SSH connection to the managed hosts
For more information, see Connection methods and details.
-
rootaccess
Procedure
Create or modify the file
/etc/ansible/hostswith new host names to be configured:host01 host02
host01 host02Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
host01andhost02with the names of your managed nodes. Each managed node name must be on a separate line.Create a file named
sap-hana.ymlwith the following content:Copy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantThe indentation and the use of spaces instead of tabs is essential for YAML files.
Run the
sap-hana.ymlansible playbook:ansible-playbook -l host01,host02 sap-hana.yml
# ansible-playbook -l host01,host02 sap-hana.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace host01 and host02 with the names of your managed nodes.
This configures the remote host01 and host02 according to the applicable SAP notes for SAP HANA.
- Reboot the servers host01 and host02.