criecm.tomcat
tomcat
FreeBSD & Debian, tomcat 8/9, jdk8, memcache sessions, remoteipvalve support
variables (default value)
general config
classpath_adds('') jar's list to be added, column-separated (:)tomcat_java_version (11)Java version wanted to run tomcattomcat_default_java_opts('-Djava.awt.headless=true -Xms1024m -Xmx2g -Dlog4j2.formatMsgNoLookups=true') java command argstomcat_java_gc_opts ('-XX:+UseConcMarkSweepGC' if java < 9, '' else)override java GC optstomcat_java_opts ('')additional java opts for tomcat startuptomcat_lang_opts('') additional java command argstomcat_http_port(8080) http porttomcat_ajp_port(8009) ajp porttomcat_ajp_address (0.0.0.0)ajp listen addresstomcat_keystore('') path to a keystore filetomcat_storepass('') keystore passwordtomcat_catalina_props([]) list of lines to be added/replaced in catalina.properties (will replace line matching line before '=')tomcat_apr_port ('')if defined, on which port we should listen with APR connectortomcat_apr_cert ('')If defined to an x509 cert, HTTPS support will be activated with APR support cert and key will be copied in tomcat config dirtomcat_apr_key ('')PEM key for above cert. Mandatory if you want TLS with APRjre_dir (depend on distrib)path to jre for tomcattomcat_env_vars ({})dict of environment variables for tomcattomcat_env_file ('')a file sourced for environment variables- see
defaults/main.ymlfor exhaustive list
http(s) reverse-proxy support
proxies_ips_regex('') regex matching proxy(ies) IP (eg: '^(127.0.0.1|::1)$' for localhost IPv4 and IPv6)if
proxies_ips_regexis defined, RemoteIpValve will be configured, supporting:- X-Forwarded-For
- X-Forwarded-Proto (must be 'https' if ssl)
memcache sessions
if memcached_nodes is not empty:
Session are replicated between memcache instances on each tomcat host Using https://github.com/magro/memcached-session-manager/wiki
memcached_nodeshas to be filled as this:node names (here srv1/srv2) MUST match inventorymemcached_nodes: 'srv1:srv1.fqdn:11211,srv2:srv2.fqdn:11211'
inventory_hostnametomcat_memcached_sticky (True)If set to false, enable non-sticky synchronous sessions
(see templates/context.xml.j2)
webapps deployment
tomcat_webapps ([])list of dicts describing webapps to deploykeyis namewaris war file to deploy in webapps dirgitsrcwill be cloned in dirgitdstif both existsscriptis the command line, relative togitdst, to be launched (as root) user after deploying (if any)
tomcat_forced_deploy (False)force tomcat to be stopped before deployment and apps dirs forcibly removedmyapp ('')If defined, only deploy this app (must match webapp.key)
Install
ansible-galaxy install criecm.tomcatLicense
Unknown
Downloads
220
Owner
Direction des Systèmes d'Information
