forked from ISTI-ansible-roles/ansible-roles
library/roles/tomcat-multiple-instances/templates/tomcat-default.j2: Set a default for the tomcat jmx port.
This commit is contained in:
parent
719d0cb8b7
commit
364d6ed864
|
@ -17,7 +17,7 @@ JAVA_OPTS="{{ item.java_gc_opts }} $JAVA_OPTS"
|
|||
JAVA_OPTS="${JAVA_OPTS} {{ item.other_java_opts }}"
|
||||
{% endif %}
|
||||
{% if item.jmx_enabled is defined and item.jmx_enabled %}
|
||||
JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port={{ item.jmx_port }}"
|
||||
JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port={{ item.jmx_port | default('tomcat_m_jmx_port') }}"
|
||||
{% if item.jmx_use_ssl is defined and item.jmx_use_ssl %}
|
||||
JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote.ssl=true"
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in New Issue