Installs multiple instances of the tomcat service using the system packages. https://tomcat.apache.org
Go to file
Andrea Dell'Amico a80dc894f3 Add a default http port 2020-11-26 14:13:53 +01:00
defaults Add a default http port 2020-11-26 14:13:53 +01:00
files Import the old role. 2020-06-01 19:00:45 +02:00
handlers Import the old role. 2020-06-01 19:00:45 +02:00
meta Import the old role. 2020-06-01 19:00:45 +02:00
tasks Group ownership to www-data for the log directory when requested. 2020-08-06 17:30:25 +02:00
templates Fix a typo. 2020-11-03 15:39:43 +01:00
tests Initial commit 2020-05-28 15:21:37 +02:00
vars Disable the tomcat standalone service. 2020-07-08 14:55:36 +02:00
.gitignore Initial commit 2020-05-28 15:21:37 +02:00
LICENSE Initial commit 2020-05-28 15:21:37 +02:00
README.md Import the old role. 2020-06-01 19:00:45 +02:00

README.md

Role Name

A role that installs multiple instances of tomcat, using the binaries from the distribution packages.

Role Variables

The most important variables are listed below:

tomcat_m_instances:
  - {  http_enabled: True, http_port: '8180', http_address: '0.0.0.0', ajp_enabled: False, ajp_port: '8109', ajp_address: '127.0.0.1', restart_timeout: '{{ tomcat_m_restart_timeout }}', shutdown_port: '8105', java_home: '{{ jdk_java_home }}', user: '{{ tomcat_m_default_user }}', user_home: '{{ tomcat_m_instances_base_path }}', user_shell: '{{ tomcat_m_default_user_shell }}', instance_path: '{{ tomcat_m_instances_base_path }}/8180', max_threads: '{{ tomcat_m_max_threads }}', autodeploy: '{{ tomcat_m_webapps_autodeploy }}', unpack: '{{ tomcat_m_webapps_unpack }}', install_server_xml: True, default_conf: True, java_opts: '{{ tomcat_m_java_opts }}', java_gc_opts: '{{ tomcat_m_java_gc_opts }}', proxy_enabled: '{{ tomcat_m_proxy_enabled }}', other_java_opts: '{{ tomcat_m_other_java_opts }}', jmx_enabled: '{{ tomcat_m_jmx_enabled }}', jmx_disable_additional_ports: '{{ tomcat_m_jmx_disable_additional_ports }}', jmx_auth_enabled: '{{ tomcat_m_jmx_auth_enabled }}', jmx_auth_dir: '{{ tomcat_m_instances_base_path }}/8180/conf', jmx_port: '{{ tomcat_m_jmx_port }}', jmx_monitorpass: '{{ set_in_a_vault_file }}', jmx_controlpass: '{{ set_in_a_vault_file }}', remote_debugging: '{{ tomcat_m_enable_remote_debugging }}', remote_debugging_uri: '{{ tomcat_m_remote_debugging_uri }}', access_log_enabled: True, log_rotation_freq: daily, log_retain: 30, allowed_hosts: [ 'xxx.xxx.xxx.xxx/32', 'yyy.yyy.yyy.yyy/32' ], app_contexts: [ 'app1', 'app2' ] }

Dependencies

The tomcat role, <git+https://gitea-s2i2s.isti.cnr.it/ISTI-ansible-roles/ansible-role-tomcat.git>

License

EUPL-1.2

Author Information

Andrea DellAmico, andrea.dellamico@isti.cnr.it