This will template the file and copy at the correct destination stripping the directory and the jinja extension (if present). The original basename will be kept if activemq_logger_config_keep_name: True. and it will then be passed to the JVM arguments as:
-Dlog4j.configurationFile=<custom_template>
Parameter recap:
Variable
Description
Default
activemq_logger_audit_rollover_files
Number of rollover audit log files
5
'log4j2.properties' if activemq_version is version_compare('2.27.0', '>=') else 'logging.properties'
activemq_logger_config_template_path
Optional subdirectory of any playbook template lookup directories for the logging facility configuration
''
activemq_logger_config_keep_name
Whether to keep the custom template filename or use the default
False
This change also refactor how JVM parameters are built in the role defaults; no changes will be needed to preserve behaviour if the activemq_java_opts parameter has already been overriden; otherwise, new parameters with defaults have been created that will be concatenated in the final JVM arguments, which can be overridden independently.
It is now possible to pass the filename relative to playbook search paths as:
This will template the file and copy at the correct destination stripping the directory and the jinja extension (if present). The original basename will be kept if
activemq_logger_config_keep_name: True
. and it will then be passed to the JVM arguments as:Parameter recap:
activemq_logger_audit_rollover_files
5
'log4j2.properties' if activemq_version is version_compare('2.27.0', '>=') else 'logging.properties'
activemq_logger_config_template_path
''
activemq_logger_config_keep_name
False
This change also refactor how JVM parameters are built in the role defaults; no changes will be needed to preserve behaviour if the
activemq_java_opts
parameter has already been overriden; otherwise, new parameters with defaults have been created that will be concatenated in the final JVM arguments, which can be overridden independently.activemq_java_opts_extra
""
activemq_java_opts_mem
-Xms512M -Xmx2G"
activemq_java_opts_gc
-XX:+PrintClassHistogram -XX:+UseG1GC -XX:+UseStringDeduplication
activemq_java_opts_hawtio
-Dhawtio.disableProxy=true -Dhawtio.realm=activemq -Dhawtio.offline=true -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal
with
activemq_java_opts
now redefined as:Fix #112