This course covers Ansible automation for SAP. We'll start off with introductions to both SAP and Ansible and then we'll present the use cases of automation with Ansible that we have built for SAP. You'll then be guided through a demonstration of an end-to-end deployment of SAP HANA and SAP applications like NetWeaver and S4/HANA.
Learning Objectives
- Learn the fundamentals of what SAP and Ansible are and how they work
- Learn how to patch SAP landscapes
- Understand SAP HANA and SAP Netweaver maintenance
- Automate the deployment of SAP S/4HANA databases with Ansible Tower
- Automate the creation of SAP HANA and SAP S/4HANA Pacemaker Clusters
- Automate the migration of SAP workloads from SUSE Linux Enterprise Server to Red Hat Enterprise Linux
- Learn how to carry out SAP Application Server Autoscaling
Intended Audience
This course is intended for anyone who wants to learn how to learn how Ansible automation can be used with their SAP workloads.
Prerequisites
To get the most from this course, you should have basic knowledge of Ansible and SAP.
In this solution apart from Ansible, we are also using Satellite and we are using also Red Hat Insights. Red Hat Insights is a product that what it does is proactive monitoring what we were saying. We like to complement or to say that is complement or complementary to the monitoring that SAP solution manager does. For those of you who don't know SAP solution manager, it's a product by SAP that as its names says or implies, it contains many solutions and a very important one is the monitoring of SAP systems or we call it as well insights for SAP workloads.
In this solution we are using not only Ansible but also Red Hat Satellite and we are using Red Hat Insights which is the solution of the product that provides proactive monitoring of servers not only for SAP but in general for any server that runs a real operating system. We like to match this with the monitoring that we normally do or users normally do with SAP solution manager. So, for those of you who doesn't know what a solution manager does is a product by SAP and as its name implies it has several solutions and one of the main solutions is the monitoring of SAP systems not only at hardware level but mostly and most interestingly at SAP levels. So, it monitors some KPIs that are specific to SAP. So, for example the SAP jobs that are running to perform tasks. The communication flow between SAP systems for example by means of idols that it's the main protocol of communication. The RFCs that are the connections between SAP systems or SAP and non-SAP systems. So, this is more SAP specific monitoring tool but it can be complemented by Red Hat Insights that's a very convenient and very thorough monitoring at hardware and OS level. As I mentioned before this is only for servers that run RHEL operating system. It is a proactive tool and it uses machine learning and artificial intelligence.
So, it's based in rules and what it does is it's connected to systems and it's learning about the errors and potential errors and problems that arise. So whenever there's a situation that leads to an issue it will record everything that has led to that situation, so that in the future if it sees some patterns of some of those conditions that have led to that to that error, it will flag it, not only flag it to the administrators but in this solution it will be combined with Ansible to trigger remediation playbook. So imagine that you have a kernel parameter that insights have observed that in the past in older configurations or similar to the one that you have cost downtime, have cost to educate performance or whatever of the systems.
So, it would say watch out because you have this kernel parameter with this value and it should be rather the where you should rather have this all the value. So, apart from that from flagging this it will trigger an Ansible playbook or role to modify this and keep it consistent. So this is the best way to ensure that all your hosts that will run SAP workloads database and application are complying with the SAP recommendations because all these all these rules come from SAP nodes SAP recommendations and as we said they come from the analysis of real productive systems.
If something needs for example if a patch needs to be added to the operating system then the solution will make use of a Ansible playbook that will communicate to satellite and apply that patch. So that's as I said this is the best way to keep consistency across your SAP landscape, if insight says at any moment that one of your hosts is not complying with some notes of SAP. It will as well warn you and apply the playbooks to imitate this.
Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.
He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.
Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).