Ask Your Question

MCollective installation tutorial

asked 2015-07-28 07:40:10 -0600

nicccoX gravatar image

updated 2015-08-05 13:44:39 -0600

ramindk gravatar image

I haven't been able to have mcollective functional. Searched through the web for help although there is no standard tutorial for setting it up for Puppet 1.8.1 open-source running Ubuntu 14.04 server.

The configuration files are hideous and activemq doesn't make much sense.

Appreciate a step by step tutorial.


I went through that. I have the correct packages installed on the master and the agent. Apart from that there is no explenation how to configure /etc/mcollective/, *.cfg files or what to include in /etc/activemq/instaces-enabled or create a activemq.conf file. It doesn't say if I need to install activemq.

When I do a mco ping I get: Could not connect to ActiveMQ Server:


I went through with the module: puppet module install puppetlabs-activemq. mcollective installed on master and agent. Ran it on my master. It created an activemq.xml file. My server.cfg and client.cfg, yet when i mco ping I get error message: Could not connect to ActiveMQ Server

main_collective = mcollective
collectives = mcollective
libdir = /usr/share/mcollective/plugins
logfile = /var/log/mcollective.log
loglevel = info
daemonize = 1

# plugins
securityprovider = psk
plugin.psk = unset

connector = activemq
plugin.activemq.pool.size = 1 = stomp1 
plugin.activemq.pool.1.port = 6163
plugin.activemq.pool.1.user = mcollective
plugin.activemq.pool.1.password = marionette

factsource = yaml
plugin.yaml = /etc/mcollective/facts.yaml


Could not connect to ActiveMQ Server: (RuntimeError) from
/usr/lib/ruby/vendorruby/mcollective/connector/activemq.rb:273:in rescue in connect'
<---- from /usr/lib/ruby/vendor_ruby/mcollective/connector/activemq.rb:221:inconnect'
from /usr/lib/ruby/vendorruby/mcollective/client.rb:36:in block in initialize' from
/usr/lib/ruby/1.9.1/timeout.rb:55:intimeout' from
initialize' from /usr/lib/ruby/vendor_ruby/mcollective/application/ping.rb:52:innew' from
/usr/lib/ruby/vendorruby/mcollective/application/ping.rb:52:in main' from
/usr/lib/ruby/vendor_ruby/mcollective/application.rb:293:inrun' from
/usr/lib/ruby/vendor_ruby/mcollective/applications.rb:23:in run' from /usr/bin/mco:33:in<main>'
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-07-29 03:48:27 -0600

the puppet docs are ultimately the place to go ..

install mcollective

if you have any specific questions after goig through this let us know

Cheers Stuart

edit flag offensive delete link more


I edited my answer. As said, the documentation doesn't cover a step by step installation process, and leaves out information of additional packages to install and file configuration settings.

nicccoX gravatar imagenicccoX ( 2015-07-29 09:09:17 -0600 )edit

hi - the document has a link to configuring activemq in it - states its the first thing you need to do.

sahumphries gravatar imagesahumphries ( 2015-07-29 10:56:35 -0600 )edit

is activemq owner and has access to /var/log/activemq and all sub dirs. does /etc/init.d/activemq has: ACTIVEMO_CONFIGS="/etc/sysconfig/activemq" create file activemq in /etc/sysconfig if it doesnt exist.

sahumphries gravatar imagesahumphries ( 2015-07-30 04:30:32 -0600 )edit

No the /etc/init.d/activemq don't contain that snippet. I'm running Ubuntu, and don't have /etc/sysconfig

nicccoX gravatar imagenicccoX ( 2015-07-30 04:41:13 -0600 )edit

answered 2015-08-05 13:48:30 -0600

ramindk gravatar image

I'd start by making sure you can resolve the Activemq server from your mcollective agent. Also make sure you can reach port 6163.

Also this is how I configured Activemq for Ubuntu,

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-07-28 07:40:10 -0600

Seen: 850 times

Last updated: Aug 05 '15