Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
with:
token: ${{ secrets.TRIGGERING_PAT }}
repository: ${{ matrix.repo }}
event-type: "Dependency released - Wildfly v${{ needs.release.outputs.tag_version }}"
event-type: "Dependency released - WildFly v${{ needs.release.outputs.tag_version }}"
client-payload: '{ "github": ${{toJson(github)}} }'
9 changes: 6 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ middleware\_automation.wildfly Release Notes

This changelog describes changes after version 0.0.7.

v1.5.7
======

v1.5.6
======

Expand Down Expand Up @@ -103,7 +106,7 @@ Bugfixes
- Fix uninstall_role to work, out of the box, with the wildfly_install defaults. `#197 <https://github.com/ansible-middleware/wildfly/pull/197>`_
- Fix wildfly_install changing ownership of system directories `#210 <https://github.com/ansible-middleware/wildfly/pull/210>`_
- JBoss EAP 7.4.7+ patching fails on openjdk17 if elytron is not enabled `#203 <https://github.com/ansible-middleware/wildfly/pull/203>`_
- Wildfly user account should be in wildfly_group as primary group `#202 <https://github.com/ansible-middleware/wildfly/pull/202>`_
- WildFly user account should be in wildfly_group as primary group `#202 <https://github.com/ansible-middleware/wildfly/pull/202>`_

v1.5.0
======
Expand Down Expand Up @@ -158,7 +161,7 @@ Minor Changes
-------------

- Cleanup and reorganize Prospero playbooks `#136 <https://github.com/ansible-middleware/wildfly/pull/136>`_
- Update to Wildfly 29 `#135 <https://github.com/ansible-middleware/wildfly/pull/135>`_
- Update to WildFly 29 `#135 <https://github.com/ansible-middleware/wildfly/pull/135>`_

Bugfixes
--------
Expand Down Expand Up @@ -208,7 +211,7 @@ Minor Changes
- Add support for firewalld `#106 <https://github.com/ansible-middleware/wildfly/pull/106>`_
- Implement JBossNetwork API client for downloading install archives `#107 <https://github.com/ansible-middleware/wildfly/pull/107>`_
- Install: add prospero as alternative install mechanism `#102 <https://github.com/ansible-middleware/wildfly/pull/102>`_
- Update default Wildfly version to 28 `#103 <https://github.com/ansible-middleware/wildfly/pull/103>`_
- Update default WildFly version to 28 `#103 <https://github.com/ansible-middleware/wildfly/pull/103>`_

v1.3.1
======
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Wildfly Collection for Ansible - middleware_automation.wildfly
# WildFly Collection for Ansible - middleware_automation.wildfly

<!--start build_status -->
[![Build Status](https://github.com/ansible-middleware/wildfly/workflows/CI/badge.svg?branch=main)](https://github.com/ansible-middleware/wildfly/actions/workflows/ci.yml)
[![Build Status](https://github.com/ansible-middleware/wildfly/workflows/CI/badge.svg)](https://github.com/ansible-middleware/wildfly/actions/workflows/ci.yml)
<!--end build_status -->

## About

This Ansible Collection provides several roles to help install, setup and maintain Java JEE appserver Wildfly within the configuration management tool Ansible.
This Ansible Collection provides several roles to help install, setup and maintain Java JEE appserver WildFly within the configuration management tool Ansible.

### I know nothing about Ansible, but I want to install Wildfly, can I?
### I know nothing about Ansible, but I want to install WildFly, can I?

Yes, once Ansible is installed on your computer, you can simply run the following command (note that the inventory file needs to be populated with the name(s) of the machine(s) you wish to install Wildfly on):
Yes, once Ansible is installed on your computer, you can simply run the following command (note that the inventory file needs to be populated with the name(s) of the machine(s) you wish to install WildFly on):

$ ansible-galaxy collection install middleware_automation.wildfly
$ ansible-playbook -i inventory middleware_automation.wildfly.playbook
Expand Down Expand Up @@ -60,9 +60,9 @@ or via the included requirements file:
$ ansible-galaxy collection build .


## Using the collection to install and run Wildfly on target hosts
## Using the collection to install and run WildFly on target hosts

The collection comes with a simple playbook that allows to directly install and run Wildfly:
The collection comes with a simple playbook that allows to directly install and run WildFly:

$ ansible-playbook -i inventory middleware_automation.wildfly.playbook

Expand All @@ -84,7 +84,7 @@ Overrideable variables are documented in the roles wildfly_install, wildfly_syst
<!--start support -->
<!--end support -->

## Using the collection to customize Wildfly configuration
## Using the collection to customize WildFly configuration

Regarding the configuration of the Java app server itself, the Ansible collection has a specific strategy, designed to ensure idempotency of the resulting setup, but also ensure Ansible has the capacity to fine-tune, as much as needed, the server.

Expand All @@ -96,7 +96,7 @@ A last option is to use JBoss cli queries, within the Ansible, but it requires m

## A note on domain mode

This collection does not provides any support to use Wildfly's domain mode. The rationale behind this decision is that this Wildfly feature overlaps a lot with Ansible and it's **not recommended** and cumbersome to combine those. So, for simplicity sake, this collection focus only on standalone deployment of Wildfly JEE servers.
This collection does not provides any support to use WildFly's domain mode. The rationale behind this decision is that this WildFly feature overlaps a lot with Ansible and it's **not recommended** and cumbersome to combine those. So, for simplicity sake, this collection focus only on standalone deployment of WildFly JEE servers.

## License

Expand Down
2 changes: 1 addition & 1 deletion bump-wildfly-version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
For safety reason, it's not possible to add a script to the repository. Copy the script below and renamed it to .sh to run in order to bump the version of Wildfly use the script below:
For safety reason, it's not possible to add a script to the repository. Copy the script below and renamed it to .sh to run in order to bump the version of WildFly use the script below:
#!/bin/bash
readonly INSTALL_DEFAULTS_FILE=${INSTALL_DEFAULTS_FILE:-'roles/wildfly_install/defaults/main.yml'}
readonly NEW_VERSION=${1}
Expand Down
8 changes: 5 additions & 3 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ releases:
- 'Install: add prospero as alternative install mechanism `#102 <https://github.com/ansible-middleware/wildfly/pull/102>`_

'
- 'Update default Wildfly version to 28 `#103 <https://github.com/ansible-middleware/wildfly/pull/103>`_
- 'Update default WildFly version to 28 `#103 <https://github.com/ansible-middleware/wildfly/pull/103>`_

'
fragments:
Expand Down Expand Up @@ -272,7 +272,7 @@ releases:
- 'Cleanup and reorganize Prospero playbooks `#136 <https://github.com/ansible-middleware/wildfly/pull/136>`_

'
- 'Update to Wildfly 29 `#135 <https://github.com/ansible-middleware/wildfly/pull/135>`_
- 'Update to WildFly 29 `#135 <https://github.com/ansible-middleware/wildfly/pull/135>`_

'
fragments:
Expand Down Expand Up @@ -362,7 +362,7 @@ releases:
<https://github.com/ansible-middleware/wildfly/pull/203>`_

'
- 'Wildfly user account should be in wildfly_group as primary group `#202 <https://github.com/ansible-middleware/wildfly/pull/202>`_
- 'WildFly user account should be in wildfly_group as primary group `#202 <https://github.com/ansible-middleware/wildfly/pull/202>`_

'
major_changes:
Expand Down Expand Up @@ -545,3 +545,5 @@ releases:
fragments:
- 280.yaml
release_date: '2024-12-18'
1.5.7:
release_date: '2025-08-24'
10 changes: 5 additions & 5 deletions docs/_gh_include/header.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Wildfly Ansible Collection documentation index</title>
<title>WildFly Ansible Collection documentation index</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://ansible-middleware.github.io/wildfly/main/_static/pygments.css" type="text/css" />
Expand All @@ -19,14 +19,14 @@
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="#" class="icon icon-home"> Wildfly Ansible Collection</a>
<a href="#" class="icon icon-home"> WildFly Ansible Collection</a>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Middleware Automation</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="https://ansible-middleware.github.io/infinispan/">Infinispan / Red Hat Data Grid</a></li>
<li class="toctree-l1"><a class="reference internal" href="https://ansible-middleware.github.io/keycloak/">Keycloak / Red Hat Single Sign-On</a></li>
<li class="toctree-l1"><a class="reference internal" href="https://ansible-middleware.github.io/wildfly/">Wildfly / Red Hat JBoss EAP</a></li>
<li class="toctree-l1"><a class="reference internal" href="https://ansible-middleware.github.io/wildfly/">WildFly / Red Hat JBoss EAP</a></li>
<li class="toctree-l1"><a class="reference internal" href="https://ansible-middleware.github.io/jws/">Tomcat / Red Hat JWS</a></li>
<li class="toctree-l1"><a class="reference internal" href="https://ansible-middleware.github.io/amq/">ActiveMQ / Red Hat AMQ</a></li>
<li class="toctree-l1"><a class="reference internal" href="https://ansible-middleware.github.io/amq_streams/">Kafka / Red Hat AMQ Streams</a></li>
Expand All @@ -43,15 +43,15 @@
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="#" class="icon icon-home"></a> &raquo;</li>
<li>Welcome to Wildfly Collection documentation</li>
<li>Welcome to WildFly Collection documentation</li>
<li class="wy-breadcrumbs-aside"></li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="welcome-to-wildfly-collection-documentation">
<h1>Welcome to Wildfly Collection documentation<a class="headerlink" href="#welcome-to-wildfly-collection-documentation" title="Permalink to this headline"></a></h1>
<h1>Welcome to WildFly Collection documentation<a class="headerlink" href="#welcome-to-wildfly-collection-documentation" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Pick collection version:</span></p>
<ul>
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# -- Project information -----------------------------------------------------

project = 'Wildfly Ansible Collection'
project = 'WildFly Ansible Collection'
copyright = '{y}, Red Hat, Inc.'.format(y=datetime.date.today().year)
author = 'Red Hat, Inc.'

Expand Down Expand Up @@ -109,7 +109,7 @@
# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'WildflyCollectionDoc'
htmlhelp_basename = 'WildFlyCollectionDoc'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops; I missed this when I scanned the diff locally. This looks like a possible functional change. I'll gladly revert it if it is a problem. I'll leave it for now in case it's harmless.



# -- Options for LaTeX output ------------------------------------------------
Expand All @@ -136,7 +136,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'WildflyCollection.tex', 'Red Hat JBoss EAP Ansible Collection Documentation',
(master_doc, 'WildFlyCollection.tex', 'Red Hat JBoss EAP Ansible Collection Documentation',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above.

'Red Hat, Inc.', 'manual'),
]

Expand All @@ -157,8 +157,8 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'WildflyCollection', 'Red Hat JBoss EAP Ansible Collection Documentation',
author, 'WildflyCollection', 'One line description of project.',
(master_doc, 'WildFlyCollection', 'Red Hat JBoss EAP Ansible Collection Documentation',
author, 'WildFlyCollection', 'One line description of project.',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above.

'Miscellaneous'),
]

Expand Down
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. Red Hat middleware_automation Wildfly Ansible Collection documentation main file
.. Red Hat middleware_automation WildFly Ansible Collection documentation main file

Welcome to Wildfly Collection documentation
Welcome to WildFly Collection documentation
===========================================

.. toctree::
Expand Down Expand Up @@ -31,7 +31,7 @@ Welcome to Wildfly Collection documentation

Infinispan / Red Hat Data Grid <https://ansible-middleware.github.io/infinispan/>
Keycloak / Red Hat Single Sign-On <https://ansible-middleware.github.io/keycloak/>
Wildfly / Red Hat JBoss EAP <https://ansible-middleware.github.io/wildfly/>
WildFly / Red Hat JBoss EAP <https://ansible-middleware.github.io/wildfly/>
Tomcat / Red Hat JWS <https://ansible-middleware.github.io/jws/>
ActiveMQ / Red Hat AMQ Broker <https://ansible-middleware.github.io/amq/>
Kafka / Red Hat AMQ Streams <https://ansible-middleware.github.io/amq_streams/>
Expand Down
2 changes: 1 addition & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ at every collection release to ensure non-breaking changes and consistent behavi
The repository are:

- [Flange demo](https://github.com/ansible-middleware/flange-demo)
A deployment of Wildfly cluster integrated with keycloak and infinispan.
A deployment of WildFly cluster integrated with keycloak and infinispan.
- [CrossDC keycloak demo](https://github.com/ansible-middleware/wildfly-cluster-demo)
A clustered installation of EAP.

Expand Down
4 changes: 2 additions & 2 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
namespace: middleware_automation
name: wildfly
version: "1.5.7"
version: "1.5.8"
readme: README.md
authors:
- Romain Pelisse <[email protected]>
- Andrew Block <[email protected]>
- Harsha Cherukuri <[email protected]>
- Guido Grazioli <[email protected]>
- Ranabir Chakraborty <[email protected]>
description: Enable Ansible to provisioning JBoss EAP or Wildfly instances.
description: Enable Ansible to provisioning JBoss EAP or WildFly instances.
license_file: "LICENSE"
tags:
- java
Expand Down
2 changes: 1 addition & 1 deletion molecule/custom_config_file/vars.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
wildfly_config_custom_file: files/wildfly-custom.xml
wildfly_version: '35.0.0.Final'
wildfly_version: '37.0.0.Final'
wildfly_archive_filename: "wildfly-{{ wildfly_version }}.zip"
wildfly_download_baseurl: 'https://github.com/wildfly/wildfly/releases/download'
wildfly_install_download_url: "{{ wildfly_download_baseurl }}/{{ wildfly_version }}/{{ wildfly_archive_filename }}"
Expand Down
17 changes: 14 additions & 3 deletions molecule/custom_config_file/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@
when:
- wildfly_apps is defined and wildfly_apps | length > 0

- name: "Verify that state is consistent"
- name: "STEP 1: Add the 'test' system property (The Action)"
ansible.builtin.include_role:
name: wildfly_utils
tasks_from: jboss_cli.yml
vars:
jboss_cli_query: "/system-property=test:add(value=testvalue)"

- name: "STEP 2: Verify the property using wildfly_validation_queries (The Validation)"
ansible.builtin.include_role:
name: wildfly_validation
vars:
- eap_validation_queries:
- { query: '/system-property=test:read-attribute(name=value)', expected_result: 'testvalue', expected_result_undefined: False}
wildfly_validation_queries:
- {
query: '/system-property=test:read-attribute(name=value)',
expected_result: 'testvalue',
expected_result_undefined: False
}
when:
- not eap_enable is defined
2 changes: 1 addition & 1 deletion molecule/prospero/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ driver:
name: ${CI_DRIVER:-docker}
platforms:
- name: instance
image: registry.access.redhat.com/ubi8/ubi-init:latest
image: registry.access.redhat.com/ubi9/ubi-init:latest
pre_build_image: true
privileged: true
command: "/usr/sbin/init"
Expand Down
2 changes: 0 additions & 2 deletions molecule/prospero/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
wildfly_prospero_install_dir: /opt/prospero
wildfly_validation_install_use_prospero: true
wildfly_validation_check_prospero_install: false
vars_files:
- vars.yml
collections:
- middleware_automation.wildfly
tasks:
Expand Down
2 changes: 1 addition & 1 deletion molecule/uninstall/vars.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
wildfly_uninstall_service_name: wildfly
wildfly_uninstall_version: '35.0.0.Final'
wildfly_uninstall_version: '37.0.0.Final'
wildfly_uninstall_home: "/opt/wildfly/wildfly-{{ wildfly_uninstall_version }}"
wildfly_uninstall_path_to_archive: "/opt/wildfly/wildfly-{{ wildfly_uninstall_version }}.zip"
2 changes: 1 addition & 1 deletion molecule/uninstall/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- name: Populate service facts
ansible.builtin.service_facts:

- name: "Display state of the Wildfly service"
- name: "Display state of the WildFly service"
ansible.builtin.debug:
msg: "{{ ansible_facts.services['wildfly.service'] }}"

Expand Down
2 changes: 1 addition & 1 deletion playbooks/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Ensure Wildfly is install and running as a service
- name: Ensure WildFly is install and running as a service
hosts: all
vars_files:
- vars/vars.yml
Expand Down
4 changes: 2 additions & 2 deletions roles/wildfly_driver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Role Defaults
|:---------|:------------|:--------|
|`wildfly_driver_module_dir`| Path for module installation | `{{ wildfly_home }}/modules/{{ wildfly_driver_module_name | replace('.', '/') }}/main` |
|`wildfly_driver_jar_installation_path`| Path for jdbc driver installation | `{{ wildfly_driver_module_dir }}/{{ wildfly_driver_jar_filename }}` |
|`wildfly_version`| Wildfly version to install | `35.0.0.Final` |
|`wildfly_home`| Wildfly installation directory | `/opt/wildfly/wildfly-{{ wildfly_version }}/` |
|`wildfly_version`| WildFly version to install | `37.0.0.Final` |
|`wildfly_home`| WildFly installation directory | `/opt/wildfly/wildfly-{{ wildfly_version }}/` |
|`wildfly_user`| posix user account for wildfly | `wildfly` |
|`wildfly_group`| posix group for wildfly | `{{ wildfly_user }}` |
<!--end argument_specs-->
Expand Down
2 changes: 1 addition & 1 deletion roles/wildfly_driver/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
wildfly_user: 'wildfly'
wildfly_group: "{{ wildfly_user }}"
wildfly_version: '35.0.0.Final'
wildfly_version: '37.0.0.Final'
wildfly_home: "/opt/wildfly/wildfly-{{ wildfly_version }}/"
wildfly_driver_module_dir: "{{ wildfly_home }}/modules/{{ wildfly_driver.module_name | replace('.', '/') }}/main"
wildfly_driver_jar_installation_path: "{{ wildfly_driver_module_dir }}/{{ wildfly_driver_jar_filename }}"
6 changes: 3 additions & 3 deletions roles/wildfly_driver/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ argument_specs:
description: "Name for the jdbc driver module"
type: "str"
wildfly_version:
default: "35.0.0.Final"
description: "Wildfly version to install"
default: "37.0.0.Final"
description: "WildFly version to install"
type: "str"
wildfly_home:
default: "/opt/wildfly/wildfly-{{ wildfly_version }}/"
description: "Wildfly installation directory"
description: "WildFly installation directory"
type: "str"
wildfly_user:
default: "wildfly"
Expand Down
Loading
Loading