Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MODULE_OPTS parameter to support java agent options on EAP7.4 #284

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 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 %>"
<% } -%>
Loading