Lab 5

Automated flight service deployment

Lab Goal

To leverage Ansible automation to deploy JEE web service as xPaaS JBoss EAP service container.

ARCHITECTURE

Deploy JEE web service in xPaaS JBoss EAP service

WHERE ARE PLAYBOOKS?

  • The travel backend services are deployed using Ansible playbooks
  • They are found here:

    • $ cd support/playbooks/deploy-ocp-services


  • Let's deploy the flight service:

    • $ ./ansible-playbook-javaservice.sh

PLAYBOOK START

  • The flight service playbook stars with messages, setup and logging in to the OpenShift Container Platform:

    • $ ./ansible-playbook-javaservice.sh

PLAYBOOK DEPLOYMENT

  • The flight service playbook finally deploys a new container, xPaaS JBoss EAP service and reports playbook status as it finishes:

IF BUILD FAILS

  • Look in OCP console at Monitoring for Builds
  • The playbook build can fail if your network is slow or can't reach maven depencencies
  • To determine cause, open flight build container log:

HOW TO FIX

  • Try to solve network issues and build again, until build succeeds:

DEPLOYED FLIGHTS

  • When a build finishes you see a new deployment container appears in Monitoring view under Deployments:

END LAB 5

QUESTIONS?

Eric D. Schabell
Portfolio Architect Director
@ericschabell
http://schabell.org

UP NEXT...

Lab 6 - Car service playbook