sap_swpm Ansible Role

Ansible role for SAP software installation using SWPM

Requirements

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

Scope

This role has been tested and working for the following scenarios

This role has been tested and working for the following SAP products

The general rule is - if the installation uses SAP SWPM then this Ansible Role can be used.

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.

SAP Preconfigure

SAP Software Installation .SAR Files

  1. SAPCAR executable

  2. Software Provisioning Manager .SAR file
  3. SAP Installation files

Variables and Parameters

Input Parameters

The inputs are critical for running this role
- Determines the installation type
- Incomplete parameters will result to failure
- Wrong parameters will result to failure

Create an input file which contains all relevant installation information.
Sample input files are stored in the inputs folder of this Ansible collection. Use the samples as guide for your desired installation

Default Parameters

Please check the default parameters file for more information on other parameters that can be used as an input:

Sample Playbooks and sample parameters are shown in the Ansible Collection /playbooks directory.

The Ansible Collection /playbooks directory includes sample playbooks for using the sap_swpm Ansible Role in the following ‘modes’:

The Ansible Collection /playbooks/vars directory includes sample variable files for:

NOTE: these are only sample files, they are meant to be edited by the user before execution and do not cover all scenarios possible (the Ansible Role can execute ant SAP SWPM installation)

Execution

Sample Ansible Playbook Execution

Sample Playbook

---
- hosts: all
  become: true
  roles:
    - { role: sap_swpm }

Execution Flow

Pre-Install

SAP SWPM

Post-Install

Execution Modes

Every SAP Software installation via SAP Software Provisioning Manager (SWPM) is possible, there are different Ansible Role execution modes available:

Default Templates mode variables

Example using all inifile list parameters with the Default Templates mode to install SAP ECC EhP8 on IBM Db2:

sap_swpm_ansible_role_mode: default_templates
sap_swpm_templates_product_input: default_templates

sap_swpm_templates_install_dictionary:

  template_name_ecc_ehp8_ibmdb2:

    sap_swpm_product_catalog_id: NW_ABAP_OneHost:BS2016.ERP608.DB6.PD
    sap_swpm_inifile_dictionary:
      sap_swpm_sid:
      ...
    sap_swpm_inifile_list:
    - swpm_installation_media
    - swpm_installation_media_swpm1
    - swpm_installation_media_swpm1_exportfiles
    - swpm_installation_media_swpm1_ibmdb2
    - sum_config
    - credentials
    - credentials_anydb_ibmdb2
    - db_config_anydb_all
    - db_config_anydb_ibmdb2
    - db_connection_nw_anydb_ibmdb2
    - nw_config_anydb
    - nw_config_other
    - nw_config_central_services_abap
    #  - nw_config_central_services_java
    - nw_config_primary_application_server_instance
    - nw_config_ports
    - nw_config_host_agent
    #  - nw_config_post_abap_reports
    - sap_os_linux_user

Tags

With the following tags, the role can be called to perform certain activities only:

License

Apache license 2.0

Author Information

IBM Lab for SAP Solutions, Red Hat for SAP Community of Practice, Jason Masipiquena, Sean Freeman, Bernd Finger, Markus Koch