Giter Club home page Giter Club logo

ansible-role-activemq's Introduction

ActiveMQ Ansible Role

Installs ActiveMQ

Build Status:

Currently only supports Ansible lint, need to add distributions (work started in .travis.yml)

Build Status

Code Climate Issue Count Test Coverage

Requirements

JAVA Oracle

Role Variables

Default installation mode for Rhel/Centos:

  • amq_install_mode: tarball

User & Group activemq runs under:

  • 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 - this can be overwritten with 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 vars : you can override or add new environment variables. These variables are used loaded by systemd service file

amq_env_vars:
  ACTIVEMQ_USER: "{{ amq_user }}"
  ACTIVEMQ_BASE: "{{ amq_run_dir }}"

Dependencies

Requires Java in order to run. Personally I do not believe in depedencies from meta/main.yml considering this looks too much like black magic ...

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

---
- hosts: localhost
  remote_user: root
  roles:
    - java
    - ansible-role-activemq

Changelog:

  • initial release - initial release support ubutnu 14/16.04 && centos 6/7
  • v1.0.0 - Add support for systemd in centos7
  • v1.0.1 - Add support for centos6 (no systemd)

License

Apache 2.0

Author Information

Haggai Philip Zagury [email protected] part of Shellg project. see also Shellg Docs

ansible-role-activemq's People

Contributors

hagzag avatar remyma avatar yorammi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-activemq's Issues

systemd

No systemd compatiblity with centos 7

/etc/sysconfig is RHEL/CentOS specific

The path for the systemd unit environment file is currently hard-coded to /etc/sysconfig/activemq .

This will work on most installations, but /etc/sysconfig/ is a path specific to RHEL/CentOS/etc.
On Debian, for example, init script environment files are stored in /etc/default/ .
Even on RH, /etc/default/ has started to see some use lately.

I recommend making the path customisable via an Ansible variable or moving environment variables directly into the service file.

Quote the systemd overlord himself:

Use of EnvironmentFile= is pretty much always a bad idea, and we probably should never have added that, since it invites packagers to reintroduce the /etc/default/ and /etc/sysconfig/ madness we try to remove.
-- systemd/systemd#618 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.