An open API service indexing awesome lists of open source software.

https://github.com/bodsch/ansible-jolokia

ansible role to deploy jolokia
https://github.com/bodsch/ansible-jolokia

ansible automation java jmx jolokia monitoring

Last synced: 7 months ago
JSON representation

ansible role to deploy jolokia

Awesome Lists containing this project

README

          

# Ansible Role: `jolokia`

Ansible role to install an jolokia application into an tomcat

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/bodsch/ansible-jolokia/main.yml?branch=main)][ci]
[![GitHub issues](https://img.shields.io/github/issues/bodsch/ansible-jolokia)][issues]
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/bodsch/ansible-jolokia)][releases]
[![Ansible Downloads](https://img.shields.io/ansible/role/d/bodsch/jolokia?logo=ansible)][galaxy]

[ci]: https://github.com/bodsch/ansible-jolokia/actions
[issues]: https://github.com/bodsch/ansible-jolokia/issues?q=is%3Aopen+is%3Aissue
[releases]: https://github.com/bodsch/ansible-jolokia/releases
[galaxy]: https://galaxy.ansible.com/ui/standalone/roles/bodsch/jolokia/

## Requirements & Dependencies

- java
- python3
- apache tomcat 9

- Ansible Collections
- [bodsch.core](https://github.com/bodsch/ansible-collection-core)

```bash
ansible-galaxy collection install bodsch.core
```
or
```bash
ansible-galaxy collection install --requirements-file collections.yml
```

### Operating systems

Tested on

* Debian based
- Debian 10 / 11 / 12
- Ubuntu 20.04 / 22.04

## usage

```yaml
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](vars/main.yml))

```yaml
jolokia_tomcat:
roles: []
users: []
```

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

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

Tweak tomcat memory settings:

```yaml
jolokia_tomcat:
initial_heap_size: 64m
max_heap_size: 256m
```

To configure own Catalina options. ([defaults](defaults/main.yml))

```yaml
jolokia_catalina_opts: []
```

To enable and configure optional logrotate. ([defaults](defaults/main.yml))

```yaml
jolokia_logrotate: {}
```

---

## Author

- Bodo Schulz

## License

[Apache](LICENSE)

**FREE SOFTWARE, HELL YEAH!**