Apache ActiveMQ

This ansible role install and configure Apache ActiveMQ.

Requirements

None

Role Variables

amq_user: activemq

# Download link (tar.gz)
# Versions less than 5.10: http://archive.apache.org/dist/activemq/apache-activemq/
# For versions higher 5.9.0: http://apache-mirror.rbc.ru/pub/apache/activemq/
amq_download_url: 'http://apache-mirror.rbc.ru/pub/apache/activemq/5.13.1/apache-activemq-5.13.1-bin.tar.gz'

# name of service for instances. also usage for service control, example:
# 'service [amq_broker_instance_name] start|stop|restart|console`
amq_broker_instance_name: activemq

# installation directory
amq_install_dir: '/opt/activemq'

# activemq enviroment variables
amq_opts_memory: '-Xms1G -Xmx1G'
amq_conf_dir: '{{ amq_install_dir }}/conf'
amq_data_dir: '/var/lib/activemq/data'
amq_tmp_dir: '{{ amq_install_dir }}/tmp'

# activemq broker config
amq_openwire_transport_connector_uri: 'tcp://0.0.0.0:61616?maximumConnections=1000&wireformat.maxFrameSize=104857600'
amq_amqp_transport_connector_uri: 'amqp://0.0.0.0:5672?maximumConnections=1000&wireformat.maxFrameSize=104857600'
amq_stomp_transport_connector_uri: 'stomp://0.0.0.0:61713?transport.closeAsync=false'
amq_stomp_and_nio_transport_connector_uri: 'stomp+nio://0.0.0.0:61712?transport.closeAsync=false'

# Use custom broker xml config
amq_custom_xml_config: False
amq_custom_xml_config_path: ''

# jetty settings
amq_webconsole_port: 8161

Dependencies

ansiblebit.oracle-java (will be autoinstalled)

Example Playbook

- hosts: all
  roles:
     - role: ansible-activemq

Author Information

Разработано и протестировано для Ubuntu 14.04 (trusty)