puppetlabs-activemq
puppetlabs-activemq copied to clipboard
build symlink for activemq-data dir
When using this module with the puppetlabs activemq rpm on an el7 box, the data dir is not setup correctly. This results in a java process that is forever stuck trying to start activemq, no ports bound, just infinite loop in the log about how the data directory can not be created.
The problem is that activemq package as of 5.9 has a different set of configuration. The one provided in the rpm package is correct. The one in puppet module (the static as well as the template), though, appears to be outdated, so it is not pointing activemq to the right data directories.
Just to add that the same applies to RHEL6. I fixed it manually by adding the missing link, just a quick workaround test, and the activemq started to work. The patch above is wrong as @jlambert121 jlambert121 says. The version check should be the other way imo. I made a check that if greater than 5.9, do the link. This made it work:
if $::osfamily == 'RedHat' and versioncmp($version, '5.9') > 0 {
file { '/usr/share/activemq/activemq-data':
ensure => link,
target => '/var/cache/activemq/data',
}
}
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.