jolokia

Ansible Role: jolokia

Ansible role to install an jolokia application into an tomcat

GitHub Workflow Status GitHub issues GitHub release (latest by date) Ansible Quality Score

Requirements & Dependencies

  • java

  • python3

  • apache tomcat 9

  • Ansible Collections

ansible-galaxy collection install bodsch.core

or

ansible-galaxy collection install --requirements-file collections.yml

Operating systems

Tested on

  • Debian based
    • Debian 10 / 11 / 12
    • Ubuntu 20.04 / 22.04

usage

jolokia_version: 1.6.2
jolokia_file_name: "jolokia-war-{{ jolokia_version }}.war"
jolokia_download_url: "https://repo1.maven.org/maven2/org/jolokia/jolokia-war/{{ jolokia_version }}/{{ jolokia_file_name }}"

jolokia_home: /opt/jolokia

jolokia_user: jolokia
jolokia_group: jolokia

jolokia_debug: false

jolokia_systemd:
  restart: 'on-failure'
  restart_sleep: '20s'

jolokia_tomcat: {}

jolokia_jmx_remote:
  port: 22222
  authenticate: 'false'
  ssl: 'false'

To configure tomcat: (for example)

jolokia_tomcat:
  roles: []
  users: []

For example, add a user and a role for security reason:

jolokia_tomcat:
  roles:
    - jolokia
  users:
    - username: monitoring
      password: monitoring
      roles:
        - jolokia

Tweak tomcat memory settings:

jolokia_tomcat:
  initial_heap_size: 64m
  max_heap_size: 256m

To configure own Catalina options. (defaults)

jolokia_catalina_opts: []

To enable and configure optional logrotate. (defaults)

jolokia_logrotate: {}

Author

  • Bodo Schulz

License

Apache

FREE SOFTWARE, HELL YEAH!

About

install and configure jolokia as tomcat application

Install
ansible-galaxy install bodsch/ansible-jolokia
GitHub repository
License
Unknown
Downloads
25
Owner
ex-developer (c, c++, php), ex-system administrator / engineer, keep-it-simple, monitoring, automation, system architect