shelleg.activemq
ActiveMQ Ansible Role
This role installs ActiveMQ.
Build Status:
Currently, it only supports Ansible lint. Support for distributions is in progress (work started in .travis.yml
).
Requirements
Requires JAVA from Oracle.
Role Variables
Default installation mode for RHEL/Centos:
amq_install_mode: tarball
User and group for ActiveMQ:
amq_user: activemq
amq_group: activemq
amq_home_dir: /var/lib/activemq
amq_log_dir: /var/log/activemq
Installation directory:
amq_install_dir: /opt
amq_run_dir: "/opt/{{ amq_user }}"
Default version:
amq_version_major: "5"
amq_version_minor: "13"
amq_version_patch: "3"
amq_version: "{{ amq_version_major }}.{{ amq_version_minor }}.{{ amq_version_patch }}"
Download URL - can be changed to your corporate URL prefix:
amq_url_prefix: "http://archive.apache.org/dist/activemq/"
amq_url: "{{ amq_url_prefix }}/{{ amq_version }}/apache-activemq-{{ amq_version }}-bin.tar.gz"
Environment variables: You can change or add new environment variables. These variables are loaded by the systemd service file.
amq_env_vars:
ACTIVEMQ_USER: "{{ amq_user }}"
ACTIVEMQ_BASE: "{{ amq_run_dir }}"
Dependencies
Requires Java to run. I personally do not trust dependencies listed in meta/main.yml, as they seem too mysterious...
Example Playbook
Here’s how to use your role (with variables passed in as parameters):
---
- hosts: localhost
remote_user: root
roles:
- java
- ansible-role-activemq
Changelog:
- Initial release - supports Ubuntu 14/16.04 and CentOS 6/7
- v1.0.0 - Added support for systemd in CentOS 7
- v1.0.1 - Added support for CentOS 6 (no systemd)
License
Author Information
Haggai Philip Zagury hagzag@tikalk.com. Part of the Shellg project. See also Shellg Docs