Ansible role for SAP software installation using SWPM
The role requires additional collections which are specified in meta/collection-requirements.yml
. Before using this role,
make sure that the required collections are installed, for example by using the following command:
ansible-galaxy install -vv -r meta/collection-requirements.yml
NOTE: This Ansible role is delivered by Red Hat with a support scope of Technology Preview only for the following deployment scenarios:
S/4HANA 2021 and S/4HANA 2022 single-host installation on x86_64: RHEL 8.4, 8.6, 9.0 and ppc64le: RHEL 8.4 and 8.6.
Only the default
role mode is supported.
All other functionality of this role is currently not supported by Red Hat.
Ensure the required volumes and filesystems are configured in the host. You can use the role sap_storage_setup
to configure this. More info here
Please run the RHEL SAP System Role sap_general_preconfigure
for initial host configuration; as necessary, also use sap_netweaver_preconfigure
and sap_hana_preconfigure
For further guidance on using SAP SWPM for different SAP Software installations, please see System Provisioning with Software Provisioning Manager (SWPM) - User Guides for SAP SWPM 1.0 and User Guides for SAP SWPM 2.0
SAPCAR executable
SWPM*.SAR
igs*.sar
igshelper*sar
SAPHOSTAGENT*SAR
SAPEXEDB_*SAR
SAPEXE_*SAR
IMDB_CLIENT*SAR
The inputs are critical for running this role
- Determines the installation type
- Incomplete parameters will result to failure
- Wrong parameters will result to failure
Please check the default parameters file for more information on other parameters that can be used as an input:
Red Hat KB article 6857351 contains instructions for installing an S/4HANA single host system
including a sample playbook.
Further examples can be found here.
Sample Ansible Playbook Execution
ansible-playbook --connection=local --limit localhost -i "localhost," sap-swpm.yml -e "@inputs/S4H.install"
ansible-playbook -i "<target-host>" sap-swpm.yml -e "@inputs/S4H.install"
---
- hosts: all
become: true
roles:
- sap_swpm
Get SAPCAR executable filename from sap_swpm_sapcar_path
Get SWPM executable filename from sap_swpm_swpm_path
Get all .SAR filenames from sap_swpm_software_path
Update /etc/hosts
(optional - yes by default)
Apply firewall rules for SAP HANA (optional - no by default)
Process SAP SWPM inifile.params
based on inputs
Set expiry of Unix created users to ‘never’
Apply firewall rules for SAP NW (optional - no by default)
With the following tags, the role can be called to perform certain activities only:
sap_swpm_generate_inifile
: Only create the sapinst inifile. This can be useful for checking if the inifile is created as desired.sap_swpm_sapinst_commandline
: Only show the sapinst command line.sap_swpm_pre_install
: Perform all preinstallation steps, then exit.sap_swpm_setup_firewall
: Only perform the firewall preinstallation settings (but only if variable sap_swpm_setup_firewall
is set to true
).sap_swpm_update_etchosts
: Only update file /etc/hosts
(but only if variable sap_swpm_update_etchosts
is set to true
).Apache license 2.0
IBM Lab for SAP Solutions, Red Hat for SAP Community of Practice, Jason Masipiquena, Sean Freeman, Bernd Finger, Markus Koch