This collection of roles is currently in development
This repository provides a collection of Ansible roles for SLES for SAP. The roles are written to support the provision of SLES for SAP along with the configuration of storage and the provisioning of SAP software such as S4 and HANA.
These roles all consist of three steps:
- Pre-checks
- Tasks
- Post-checks
Pre-checks are run to ensure that the tasks the role performs can be completed. This includes checking that mandatory variables are defined and populated and that required software packages are present. If any of the prerequisites are not met, a meaningful error message will be printed instructing the user how what is required.
The tasks section executes the tasks required to attain the required state that the role provides.
The post-checks section of the role verifies that the tasks section yielded the expected results. Again, if any check fails, a meaningful error message will be printed for the user.
Be aware that the roles will not install or remove any packages. If packages required for the roles are missing, an error will be printed when running pre-checks.
It is the opinion of the authors that package managed should be handled externally from the roles.
To see more information about the naming and coding conventions used in the project, see the Conventions page.
This project has used the following software version.
- python 3.9.6
- ansible 7.1.0 (installed with pip)
- ansible-core 2.14.1 (installed with pip)
- jmespath 1.0.1 (installed with pip)
- passlib 1.7.4 (installed with pip)
We strongly recommend using these or newer versions when deploying.
On SUSE Linux Enterprise Server 15 SP4 or newer, the requirements can be installed using the following commands:
# add Python 3 repository
SUSEConnect -p sle-module-python3/15.4/x86_64
# Install Python 3.10 and all other requirements
sudo zypper in -y python310-pip && pip3 install -r requirements.txt