Skip to content

Commit

Permalink
Add module_opts parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert DEFERME committed Jan 17, 2024
1 parent 8551ea6 commit bbaf3f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
# @param java_xms Sets Java's `-Xms` parameter.
# @param java_maxmetaspace_size Sets Java's `-XX:MaxMetaspaceSize` parameter.
# @param jboss_opts Sets `JBOSS_OPTS`, allowing to override several JBoss properties. It only works with Wildfly 8.2+.
# @param module_opts Sets `MODULE_OPTS`, In JBoss EAP 7.4, MODULE_OPTS was introduced where one can set a java agent.
# @param manage_user Whether this module should manage wildfly user and group.
# @param mgmt_user Hash containing a Wildfly's management user to be used internally.
# @param mgmt_create_keystores Enables or disables the creation of keystores for TLS enabled ManagementRealm.
Expand Down Expand Up @@ -130,6 +131,7 @@
Optional[String] $overlay_class = undef,
Optional[Stdlib::Unixpath] $mgmt_ssl_cert = undef,
Optional[Stdlib::Unixpath] $mgmt_ssl_key = undef,
Optional[String] $module_opts = undef,
) {
contain wildfly::prepare
contain wildfly::install
Expand Down
4 changes: 4 additions & 0 deletions templates/domain.conf.epp
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ HOST_CONTROLLER_JAVA_OPTS="$HOST_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=d
# Sample JPDA settings for shared memory debugging
#PROCESS_CONTROLLER_JAVA_OPTS="$PROCESS_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"
#HOST_CONTROLLER_JAVA_OPTS="$HOST_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"

<% if $wildfly::version == '7.4' { -%>
MODULE_OPTS="<%= $wildfly::module_opts %>"
<% } -%>
4 changes: 4 additions & 0 deletions templates/standalone.conf.epp
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=<%= $wildfly::r
# Uncomment this in order to be able to run WildFly on FreeBSD
# when you get "epoll_create function not implemented" message in dmesg output
#JAVA_OPTS="$JAVA_OPTS -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider"

<% if $wildfly::version == '7.4' { -%>
MODULE_OPTS="<%= $wildfly::module_opts %>"
<% } -%>

0 comments on commit bbaf3f8

Please sign in to comment.