Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcollective init file hardcoded to old mcollective confdir #280

Open
bhasterix opened this issue Jan 11, 2016 · 3 comments
Open

mcollective init file hardcoded to old mcollective confdir #280

bhasterix opened this issue Jan 11, 2016 · 3 comments

Comments

@bhasterix
Copy link

Init file created for mcollective server or client with either

class { '::mcollective':
      middleware_hosts => [ $::activemq_server ],
}

Or

class { '::mcollective':
  client           => true,
  middleware_hosts => [ $::activemq_server ],
}

on RHEL 6.7:
contains the following line:

      daemon ${daemonopts} ${mcollectived} --pid=${pidfile} --config="/etc/puppetlabs/mcollective/server.cfg" --daemonize

Note the "/etc/pupplabs/mcollective/..."

In "mcollective/init.pp" the confidr is set as:

  $confdir          = '/etc/mcollective',

The result of this is that my config is correctly created in /etc/mcollective/ but when the mcollective service starts it is using an incorrect default configuration created in /etc/puppetlabs/mcollective/.

If I can get a chance to dig into this myself I will, but just in case I wanted this issue logged in case anyone else comes across it.

@bhasterix
Copy link
Author

A workaround is to reset the conf dir in your manifest:

class { '::mcollective':
  middleware_hosts => [ $::activemq_server ],
  confdir          => '/etc/puppetlabs/mcollective',
}

or of course edit the init file, but that's even more work.

@rhoml
Copy link
Member

rhoml commented Jan 11, 2016

I think the approach should be to manage the init file with the puppet module

@jyaworski
Copy link
Member

What's the status of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants