Lab 8

Automated integration service deployment

Lab Goal

To leverage Ansible automation to deploy JBoss Fuse integration in to xPaaS service container.

ARCHITECTURE

Deploy JBoss Fuse integration in to xPaaS service container

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 integration service:

    • $ ./ansible-playbook-fuseservice.sh

PLAYBOOK START

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

    • $ ./ansible-playbook-fuseservice.sh

PLAYBOOK DEPLOYMENT

The integration service playbook deploys a container, patches ports, exposes route and reports playbook status as it finishes:

IF BUILD FAILS

  • The playbook can fail if any of the other four services are not deployed
  • It can also fail due to networking issues, causing maven dependencies failures
  • To determine cause, see the error message in the build log:

HOW TO FIX

Fix networking issues or install missing services before trying to rebuild integration service.

INTEGRATION SERVICE

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

END LAB 8

QUESTIONS?

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

UP NEXT...

Lab 9 - RestAPI client testing of backend services