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 Feb 16, 2023
1 parent 4d7fd1d commit 566265f
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 @@ -23,6 +23,7 @@
# @param java_xmx Sets Java's `-Xmx` parameter.
# @param java_xms Sets Java's `-Xms` 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 @@ -125,6 +126,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 @@ -73,3 +73,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 566265f

Please sign in to comment.