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
- Host: GitHub
- URL: https://github.com/bodsch/ansible-jolokia
- Owner: bodsch
- Created: 2020-12-08T19:05:37.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T14:52:16.000Z (over 1 year ago)
- Last Synced: 2024-08-20T12:14:20.058Z (over 1 year ago)
- Topics: ansible, automation, java, jmx, jolokia, monitoring
- Language: Python
- Homepage:
- Size: 72.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Role: `jolokia`
Ansible role to install an jolokia application into an tomcat
[][ci]
[][issues]
[][releases]
[][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!**