/3trains-cluster-demo

A small demo of setting up a Wildfly cluster on a single node, using Ansible (and the JCliff Ansible Collections)

Primary LanguageJinja

Three trains in the night...

This repository contains a set of Ansible based roles and playbooks to demonstrate the integration between a Wildfly cluster with an application deployed and secured using Keycloak and built using JCliff Ansible collection. Note that currently it is a work in progress, the playbooks is not fully functional (yet)!

Set up

The following sections describe the steps necessary to prepare your machine for execution

JCliff Integration

First of all, you'll need to install the JCliff Ansible collection:

$ ansible-galaxy collection install -r collections/requirements.yml

Ansible Inventory

Ansible groups are used to define the Keycloak and Wildfly instances. Configure these groups in the hosts file similar to the following:

[threetrains]

[wildfly]
192.168.22.4

[keycloak]
192.168.22.5

[threetrains:children]
wildfly
keycloak

Execution

That's all! You can now run the playbook to set up the demo:

$ ansible-playbook -i inventory/ playbooks/demo.yml