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.
version to install
package name to install
one of latest|present(default)|absent
instance name
kahabd persistence directory
special options for kahadb
if do you want to use persistent store true|false
if do you want to install jetty webserver console true|false
arrray of hashes with connectors list
enable ssl support true|false
java keystore path
java keystore password
java certificate truststore path
java certificate truststore password
active mq process options
maximum memory for java process
minimum allocated memory for java process
jdk home
limit (in M|G|K) of memory to use
limit (in M|G|K) of persisent store
limit (in M|G|K) of temporary storage
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': }
->
}
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,
}
}
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
Package name= 'activemq'
- Marian Schmotzer [email protected]
- Module Source Code
The puppetlabs-activemq module provided basics for this module.
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,
}
}