puppetlabs-activemq icon indicating copy to clipboard operation
puppetlabs-activemq copied to clipboard

build symlink for activemq-data dir

Open cliles opened this issue 10 years ago • 3 comments

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.

cliles avatar Jan 13 '15 21:01 cliles

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.

rilindo avatar Jan 28 '15 18:01 rilindo

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',
    }
  }

ikke-t avatar Jun 16 '15 12:06 ikke-t

CLA assistant check
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.

CLAassistant avatar Feb 24 '21 17:02 CLAassistant