Wildfly systemd role
Role setting up a systemd service to manage a Wildfly app server instance, using basic information on server installation.
Note: default values are based on the one of the wildfly_install role.
Requirements
A working systemd environment is required on target’s system.
Role Defaults
Variable |
Description |
Default |
---|---|---|
|
posix user account for wildfly service |
|
|
posix group for wildfly service |
|
|
Wildfly installation directory |
|
|
Base standalone.xml config for instance |
|
|
Increment for |
|
|
Enable systemd unit to autostart after reboot |
|
|
Path for systemd unit file |
|
|
Systemd unit file extension |
|
|
Suffix for systemd conf file |
|
|
Template for systemd unit |
|
|
Template for systemd config |
|
|
Path for wildfly systemd unit file |
|
|
Enable yaml file configuration feature (WFCORE5343) |
|
|
List of filenames for wildfly configuration bootstrap |
|
|
RHEL java rpm package |
|
|
Additional settings for the JVM running wildfly |
|
|
Bind address for listening to public network |
|
|
Bind address for listening to private network |
|
|
Bind address for management console port |
|
|
Multicast address for jgroup cluster discovery |
|
|
Whether to enable statistics |
|
Role Variables
Variable |
Description |
Required |
---|---|---|
|
JAVA_HOME of installed JRE, leave empty for using specified wildfly_java_package_name RPM path |
|
|
When collocating services on the same host, EAP instance ID (integer value) |
|
|
When collocating services on the same host, EAP instance name |
|
Dependencies
community.general.xml
Example Playbook
tasks:
- name: "Set up for WildFly instance {{ item }}"
include_role:
name: wildfly_systemd
vars:
wildfly_config_base: 'standalone-ha.xml'
wildfly_basedir_prefix: "/opt/{{ inventory_hostname }}"
wildfly_config_name: "{{ install_name }}"
wildfly_port_range_offset: 100
wildfly_instance_name: "{{ install_name }}"
wildfly_instance_id: "{{ item }}"
service_systemd_env_file: "/etc/eap-{{ item }}.conf"
service_systemd_conf_file: "/usr/lib/systemd/system/jboss-eap-{{ item }}.service"
loop: "{{ range(0,3) | list }}"
License
GPL2