2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
tomcat_version: 7
|
|
|
|
tomcat_pkg_state: installed
|
|
|
|
tomcat_service_enabled: True
|
2015-07-16 13:25:02 +02:00
|
|
|
tomcat_pkgs:
|
2016-03-01 18:49:38 +01:00
|
|
|
- 'tomcat{{ tomcat_version }}'
|
|
|
|
- 'libtomcat{{ tomcat_version }}-java'
|
|
|
|
- 'tomcat{{ tomcat_version }}-common'
|
2015-07-16 13:25:02 +02:00
|
|
|
- libapr1
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_user: tomcat7
|
|
|
|
tomcat_max_threads: 200
|
2017-11-22 17:48:35 +01:00
|
|
|
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_min_heap_size: 2048m
|
2017-01-17 12:54:01 +01:00
|
|
|
tomcat_permgen_defined: True
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_heap_size: '{{ tomcat_min_heap_size }}'
|
|
|
|
tomcat_permgen_size: 512m
|
2017-01-17 12:54:01 +01:00
|
|
|
tomcat_java_opts: "-Xms{{ tomcat_min_heap_size }} -Xmx{{ tomcat_heap_size }}"
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_java_gc_opts: "-XX:+UseConcMarkSweepGC"
|
|
|
|
#tomcat_other_java_opts: "-Djsse.enableSNIExtension=false"
|
|
|
|
tomcat_other_java_opts: ""
|
2015-08-24 15:56:46 +02:00
|
|
|
tomcat_install_server_xml: True
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_install_default_conf: True
|
|
|
|
tomcat_load_additional_default_conf: True
|
|
|
|
tomcat_http_enabled: True
|
|
|
|
tomcat_http_port: 8080
|
|
|
|
tomcat_http_address: 0.0.0.0
|
2015-06-09 16:01:35 +02:00
|
|
|
tomcat_webapps_autodeploy: False
|
|
|
|
tomcat_webapps_unpack: False
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_ajp_enabled: False
|
|
|
|
tomcat_ajp_port: 8009
|
|
|
|
tomcat_ajp_address: 127.0.0.1
|
2017-07-04 17:24:23 +02:00
|
|
|
tomcat_direct_access: False
|
2017-11-22 17:48:35 +01:00
|
|
|
tomcat_reverse_proxy_name_enabled: False
|
|
|
|
tomcat_reverse_proxy_name: '{{ ansible_fqdn }}'
|
|
|
|
tomcat_reverse_proxy_port: '{{ http_port | default(80) }}'
|
2015-05-28 11:32:57 +02:00
|
|
|
# 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
|
|
|
|
tomcat_shutdown_port: -1
|
2016-07-15 17:31:47 +02:00
|
|
|
tomcat_shutdown_pwd: "{{ lookup('password', '/tmp/passwordfile chars=ascii_letters,digits') }}"
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_restart_timeout: 300
|
2016-07-15 18:40:47 +02:00
|
|
|
tomcat_max_post_size: 1000000
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_catalina_home_dir: '/usr/share/tomcat{{ tomcat_version }}'
|
|
|
|
tomcat_catalina_base_dir: '/var/lib/tomcat{{ tomcat_version }}'
|
|
|
|
tomcat_conf_dir: '/etc/tomcat{{ tomcat_version }}'
|
|
|
|
tomcat_webapps_dir: '{{ tomcat_catalina_base_dir }}/webapps'
|
2015-07-16 13:25:02 +02:00
|
|
|
tomcat_common_dir: '{{ tomcat_catalina_base_dir }}/common/'
|
2015-07-13 17:54:21 +02:00
|
|
|
tomcat_common_classes_dir: '{{ tomcat_catalina_base_dir }}/common/classes'
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_tmp_dir: '{{ tomcat_catalina_base_dir }}/tmp/tomcat'
|
|
|
|
|
|
|
|
# JMX and debugging
|
|
|
|
tomcat_enable_remote_debugging: False
|
2017-10-17 20:08:44 +02:00
|
|
|
tomcat_remote_debugging_port: '0.0.0.0:8100'
|
2015-06-15 18:54:51 +02:00
|
|
|
#
|
2015-05-28 11:32:57 +02:00
|
|
|
tomcat_jmx_enabled: False
|
|
|
|
tomcat_jmx_auth_enabled: False
|
|
|
|
tomcat_jmx_port: 8082
|
|
|
|
tomcat_jmx_auth_dir: '{{ tomcat_conf_dir }}'
|
|
|
|
tomcat_jmx_use_ssl: False
|
|
|
|
# The following work with jdk >= 7.0.25 only
|
|
|
|
tomcat_jmx_disable_additional_ports: True
|
|
|
|
tomcat_jmx_localhost_only: False
|
|
|
|
# tomcat_jmx_monitorpass: define_in_a_vault_file
|
|
|
|
# tomcat_jmx_controlpass: define_in_a_vault_file
|
|
|
|
|
|
|
|
# tomcat logging
|
|
|
|
tomcat_logdir: '/var/log/tomcat{{ tomcat_version }}'
|
|
|
|
tomcat_use_log4j: True
|
|
|
|
tomcat_install_the_log4j_properties: True
|
|
|
|
tomcat_retain_old_logs: 30
|
|
|
|
tomcat_log_rotation_threshold: "ALL"
|
|
|
|
tomcat_log_max_file_size: "100MB"
|
|
|
|
tomcat_log_level: INFO
|
|
|
|
tomcat_log_logger: CATALINA
|
|
|
|
tomcat_access_log_enabled: True
|
|
|
|
tomcat_access_log_rotation_freq: "daily"
|
|
|
|
#
|
|
|
|
# Define them if you want to send all the logs to an ELK installation
|
|
|
|
tomcat_send_to_logstash: False
|
|
|
|
tomcat_logstash_collector_host: logstash
|
|
|
|
tomcat_logstash_collector_socketappender_port: 4560
|
|
|
|
tomcat_logstash_collector_socketappender_reconndelay: 10000
|
|
|
|
# Set to LOGSTASH only if you do not want local logs
|
|
|
|
tomcat_logstash_logger: CATALINA, LOGSTASH
|
|
|
|
|
|
|
|
|
|
|
|
#tomcat_access_log_file_name: localhost_access.log
|
|
|
|
#
|
|
|
|
# Administrative interface
|
|
|
|
tomcat_install_admin: False
|
|
|
|
tomcat_manager_gui_user_enabled: True
|
|
|
|
tomcat_manager_gui_user: guiadmin
|
|
|
|
tomcat_manager_gui_r: "manager-gui"
|
|
|
|
#tomcat_manager_gui_pwd: *See the vault file*
|
|
|
|
tomcat_manager_script_user_enabled: False
|
|
|
|
tomcat_manager_script_user: scriptadmin
|
|
|
|
tomcat_manager_script_r: "manager-script"
|
|
|
|
#tomcat_manager_script_pwd: *See the vault file*
|
|
|
|
tomcat_manager_jmx_user_enabled: False
|
|
|
|
tomcat_manager_jmx_user: jmxadmin
|
|
|
|
tomcat_manager_jmx_r: "manager-jmx"
|
|
|
|
#tomcat_manager_jmx_pwd: *See the vault file*
|
|
|
|
tomcat_manager_status_user_enabled: False
|
|
|
|
tomcat_manager_status_user: statusadmin
|
|
|
|
tomcat_manager_status_r: "manager-status"
|
|
|
|
#tomcat_manager_status_pwd: *See the vault file*
|
|
|
|
#
|
|
|
|
tomcat_install_jdbc: False
|
|
|
|
tomcat_install_pg_jdbc: '{{ tomcat_install_jdbc }}'
|
|
|
|
# Not used yet
|
|
|
|
tomcat_install_mysql_jdbc: False
|
2016-07-15 17:31:47 +02:00
|
|
|
|