From 848b7c94d942ea563a0ad78e613aab94629218b0 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 4 Jul 2017 17:24:23 +0200 Subject: [PATCH] library/roles/tomcat-multiple-instances, library/roles/tomcat: Record the remote client IP address into the access log. See https://support.d4science.org/issues/9155 --- tomcat-multiple-instances/defaults/main.yml | 1 + tomcat-multiple-instances/templates/tomcat-server.xml.j2 | 7 ++++++- tomcat/defaults/main.yml | 1 + tomcat/templates/tomcat-server.xml.j2 | 6 +++++- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tomcat-multiple-instances/defaults/main.yml b/tomcat-multiple-instances/defaults/main.yml index 09a10e0..d8b6ed6 100644 --- a/tomcat-multiple-instances/defaults/main.yml +++ b/tomcat-multiple-instances/defaults/main.yml @@ -37,6 +37,7 @@ tomcat_m_webapps_unpack: False tomcat_m_start_instances: True tomcat_m_enable_instances: True tomcat_m_jndi_pool: False +tomcat_m_direct_access: False # JMX and debugging tomcat_m_enable_remote_debugging: False diff --git a/tomcat-multiple-instances/templates/tomcat-server.xml.j2 b/tomcat-multiple-instances/templates/tomcat-server.xml.j2 index ed1b881..32d7151 100644 --- a/tomcat-multiple-instances/templates/tomcat-server.xml.j2 +++ b/tomcat-multiple-instances/templates/tomcat-server.xml.j2 @@ -105,8 +105,13 @@ Note: The pattern used is equivalent to using pattern="combined" --> {% endif %} diff --git a/tomcat/defaults/main.yml b/tomcat/defaults/main.yml index 98eb0ab..68aa19e 100644 --- a/tomcat/defaults/main.yml +++ b/tomcat/defaults/main.yml @@ -28,6 +28,7 @@ tomcat_webapps_unpack: False tomcat_ajp_enabled: False tomcat_ajp_port: 8009 tomcat_ajp_address: 127.0.0.1 +tomcat_direct_access: False # There is a bug that kills tomcat after 50 days if the shutdown port is enabled # Disable the shutdown port by default #tomcat_shutdown_port: 8005 diff --git a/tomcat/templates/tomcat-server.xml.j2 b/tomcat/templates/tomcat-server.xml.j2 index ce5556e..7007299 100644 --- a/tomcat/templates/tomcat-server.xml.j2 +++ b/tomcat/templates/tomcat-server.xml.j2 @@ -149,8 +149,12 @@ Note: The pattern used is equivalent to using pattern="combined" --> {% endif %}