Skip to content

Latest commit

 

History

History
130 lines (91 loc) · 5.2 KB

ANSIBLE-TOWER.md

File metadata and controls

130 lines (91 loc) · 5.2 KB

Building Images and Starting Deployments with Red Hat® Ansible Tower®

In the following we describe how to build the images and deploy containers based on the images for running an SAP® system in a Red Hat® OpenShift® Container Platform using Red Hat Ansible Tower.

Contents

Table of Contents

Getting Started with Red Hat Ansible Tower

In the following we assume that you have installed and configured Red Hat Ansible Tower on your build LPAR.

The basic installation of Ansible Tower is described in the Ansible Automation Platform Quick Installation Guide.

More detailed information is available in the Ansible Automation Platform Installation and Reference Guide.

Performing Manual Tasks

The tasks that need to be performed manually are described in section Performing manual tasks before running the playbook.

Creating a New Red Hat Ansible Tower Project

You need to set up a project that will be used in a job template for building and deploying images.

To define a new project, log into the Red Hat Ansible Tower web interface using admin-level credentials. Select Projects in the left navigation bar and click a green plus-button in the right top corner. You will get a new project view in which you need to fill in all required fields:

  • Define a project name.
  • Add a description.
  • Select organization - as an example Default can be used.
  • Select Git as SCM TYPE.
  • Specify SCM BRANCH/TAG/COMMIT to checkout source code, as example main can be defined.
  • Select SCM UPDATE OPTIONS check boxes such as clean, delete on update and update revision on launch.

You do not need credentials to access our GitHub repository since the provided URL is public - just copy it into the field SCM URL of the Projects template as shown:

SCM URL: https://github.com/IBM/containerization-for-sap-s4hana.git

New Project view

Creating the Inventory

Before creating a job template you need to set up your inventory defining the build host and credentials. Refer to chapter Inventories of the Ansible Tower User Guide for detailed instructions.

Creating the Job Template

Next, select Templates on the left side of the navigation panel. You will see a list of job templates, if there are any. To define a new job template click the green plus on the top right corner as shown:

How to add a new job template

Fill in all required fields and the desired optional fields. Detailed explanations about job templates are described in chapter Job Templates of the Ansible Tower User Guide.

Add your variables as specified in file vars/ocp-extra-vars.yml to field Extra Variables. See section Specifying your settings for all required variables.

Select playbook ansible/ocp-deployment-ansible-tower.yml in field Playbook.

Finally save the job template.

Building the Images and Starting the SAP System

Launch the job. A green status of the job run indicates that the three images were successfully built and the deployment of the SAP system was successfully started.

Verify whether your SAP system was correctly started by performing the steps described in section Verifying Deployments.

Connecting to the Deployed SAP System

To connect to the deployed SAP system refer to section Managing Deployments.