Giter VIP home page Giter VIP logo

activemq's Introduction

ActiveMQ

This module configures ActiveMQ. It is primarily designed to work with MCollective on Debian like systems. Ii is rework of https://github.com/puppetlabs/puppetlabs-activemq module.

Parameters

version

version to install

package

package name to install

ensure

one of latest|present(default)|absent

instance

instance name

kahadb_datadir

kahabd persistence directory

kahadb_opts

special options for kahadb

persistent

if do you want to use persistent store true|false

webconsole

if do you want to install jetty webserver console true|false

mq_connectors

arrray of hashes with connectors list

ssl

enable ssl support true|false

ssl_keystorepath

java keystore path

ssl_keystorepass

java keystore password

ssl_truststorepath

java certificate truststore path

ssl_truststorepass

java certificate truststore password

activemq_opts

active mq process options

java_xmx

maximum memory for java process

java_xms

minimum allocated memory for java process

java_home

jdk home

memory_usage_limit

limit (in M|G|K) of memory to use

store_usage_limit

limit (in M|G|K) of persisent store

temp_usage_limit

limit (in M|G|K) of temporary storage

Usage

Default activemq instalation

The example in the tests directory provides a good example of how the ActiveMQ module may be used. In addition, the MCollective Module provides a good example of a service integrated with this ActiveMQ module.

node default {
  class  { 'java':
    distribution => 'jdk',
    version      => 'latest',
  }
  ->
  class  { 'activemq': }
  ->
}

Activemq with ssl

Example of instalation with ssl support for storm. I used java_ks module for java certificate store creation from my X.509 keys/certs

node default
{
  $activemq_truststorepath='/etc/activemq/ca.jks'
  $activemq_truststorepass='puppet'

  $activemq_keystorepath='/etc/activemq/activemq.jks'
  $activemq_keystorepass='puppet'

  java_ks { 'puppetca:keystore':
    ensure          => latest,
    certificate     => '/var/lib/puppet/ssl/certs/ca.pem',
    target          => $activemq_truststorepath,
    password        => $activemq_truststorepass,
    trustcacerts    => true,
  }->
  java_ks { "${fqdn}:${activemq_keystorepath}":
    ensure         => latest,
    certificate    => '/var/lib/puppet/ssl/certs/mycert.pem',
    private_key    => '/var/lib/puppet/ssl/private_keys/mykey.pem',
    password       => $activemq_keystorepass,
  }->
  class {'activemq':
    kahadb_opts        => { journalMaxFileLength => "32mb" },
    ssl                => true,
    ssl_truststorepath => $activemq_truststorepath,
    ssl_truststorepass => $activemq_truststorepass,
    ssl_keystorepath   => $activemq_keystorepath,
    ssl_keystorepass   => $activemq_keystorepass,

  }

}

Activemq without ssl but using hiera

Is possible to use this module with hiera as well

node default
{
  java::oracle { 'jdk8': }
  ->
  class  { 'activemq': }
}

And all vallues are in hiera file

activemq::memory_usage_limit: 512M
activemq::mq_connectors:
  stomp+nio:
    uri: stomp://0.0.0.0:61613
  openwire:
    uri: nio://0.0.0.0:61616
activemq::mq_cluster_brokers:
  int01:
    uri: static:(nio://int02:61616)
    duplex: false
  int02:
    uri: static:(nio://int01:61616)
    duplex: false

Public Classes

Class: activemq

package

Package name= 'activemq'

Contact Information

Related Work

The puppetlabs-activemq module provided basics for this module.

Web Console

The module manages the web console by default. The web console port is usually located at port 8160:

To disable this behavior, pass in webconsole => false to the class. e.g.

node default {
  class { 'activemq':
    webconsole => false,
  }
}

activemq's People

Contributors

adreyer avatar blkperl avatar bmjen avatar bryanrossuk avatar cyberious avatar hunner avatar igalic avatar jasperla avatar jonnytdevops avatar juasiepo avatar richardc avatar snobear avatar tphoney avatar yath avatar

Watchers

 avatar  avatar

Forkers

acbox

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.