image
Automating the Deployment of SAP S/4HANA Database with Ansible Tower
Start course
Difficulty
Intermediate
Duration
2h 10m
Students
191
Ratings
5/5
starstarstarstarstar
Description

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.

Transcript

So, in this demo we are going to show how to install the application part or application tier of SAP, an SAP NetWeaver in general or S/4HANA specifically that is based on SAP NetWeaver. In this case we will install an S/4HANA 1909.

So, we will use the servers in the demo for the HANA deployment. So, as if you remember there was another host that was dedicated to this S/4HANA installation. If we go to HOSTS just to look at it again we have these two HANA servers where we deployed the database and we had this S/4HANA servers with its own variables. So these are the file systems that will be created for the installation of SAP. Okay! so that points to the path where the software of S/4HANA is and also we will find there the template with all the parameters that we need to deploy the NetWeavers for HANA application like the product ID which as you can see here it tells you that an S/4HANA 1909 version. Okay! So, if we go back to our Template we have created this one just for the, if you can see here limited to the S/4HANA host because we are not going to do anything on the HANA host in this demo because we have installed the databases there already. We go to the WORKFLOW VISUALIZER. We can see the only two steps that we're going to run. So, this one is the sap netweaver preconfigure as we saw in the other video. These are the nodes, the SAP nodes that are relevant only to hosts that will host a NetWeaver or S/4HANA application and then we'll do the deployment of S/4HANA directly. Let's close this and let's just trigger the workflow. As we saw before we can always take a look at the details of the log as it progresses. So, now it's applying all the nodes for an SAP NetWeaver application.

This will last a bit because there are a few nodes as well and then the installation of the S/4HANA will take around 40 minutes.

So, let's first see what it does here, in the meantime we can take a look at the servers.

Okay! So, I am still log on to the bastion right so the jam host from where I can either access the HANA servers or the S/4HANA server. Let me look into the S/4HANA one, it's here and if we look at the file systems, okay! we have here the file systems already prepared for the netweaver installation but we still, this installation will be called as the hana installation. 

So RHE so, at the moment there will be no RHE user if we want to change to it because the installation has not begun yet. Okay! We're just applying all the recommendations but what we can do is check with subscription-manager we can check the repos to which the server has been connected. So that was done if you remember in the other video. In the one of the first steps we used the playbook to subscribe to the RHEL for sap repos for all the servers, for the hana servers and for the s4hana servers okay! So, here we have all the repo that we need for a SAP workload installation. So, this one for example RHEL update services for SAP solutions, RHEL for SAP updated for SAP Solutions and of course the the RHEL repository. So, with this we have access to all the software, all the packages.

Everything that is needed to fine tune the server and make it compliant to the SAP nodes and yes also not in this one because in this server we are not going to deploy later on the pacemaker cluster but if we go to the hana service we can we will be able to see also the high availability reports that are there. So, let me connect back to one of the hana servers.

Okay! They're not yet here okay yes because those red bulls will be I mean the system the host will be registered once we run the playbooks to enable the or create the cluster. So, in that video we will see that those reports have been added. Okay! So, let's take a look back at the tower and let's see if the node application has finished.

Yes. So, the sap-netweaver-preconfigure role has finished correctly. So, it has applied all the nodes that are needed for an application server of these characteristics.

Okay so now if we go back to the main one it will be deploying the database sorry the database the application.

Okay! creating the directory to show the template with all the parameters for the installation open passwords and now it's installing. So, yeah as I said this will take some like 40 minutes and once it is installed we'll be able to see the server and see all the processes SAP processes etc. So, the playbook has finished. Now it has performed installation of the s4hana. So, the application and we can see no errors here, so everything is fine successful and what we can do now is go to the servers and check that actually the processes are there, the users are there. So, okay! we are already logged on to the s4hana server as as root.

So let's try to change to the installation user and now we are able to do it so that's a good sign and if we check the processes running under this user we can see all the sap processes.

There you go! so all the dialogue work processes and everything is there okay and we can also connect with the  SAP GUI, we can try to see and get inside of SAP, I have created an entry already in my SAP logon and this is what we can see. So this is the admin user that I've created, we'll come to it and there we go we have our installation of s4hana in 1909, we look at the status of the system we can see here the server name, everything the release of the hana database and what's been installed.

So let's log into the SAP GUI to the graphical interface. I have created an entry for the system already there so now we can see our system, log into it we can actually see that the system is accessible we can run some transactions so for example we can go to the dba cockpit and see what's in there right we can see the database that's been installed all the information about it current status overview performance and everything, so yeah here we have our s4hana 1909 system completely deployed with just one click so it also saves a lot of headaches to to the basis SAP Basis Administrator.  

So I hope you enjoyed this and that it will be useful to you.

About the Author
Students
132929
Labs
68
Courses
111
Learning Paths
181

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).