Setting up MCollective with activemq is very easy. The following steps worked perfectly in Ubuntu 12.04. The only dependency is either openjdk or sun java must be installed.
Download the latest activemq tar file from ActiveMQ website, I’ve used activemq 5.6 from the below link.
Untar the file to any folder say inside /opt and rename it to “activemq“.
Now create a symlink of the “activemq” binary inside “/etc/init.d”
“ln -s /opt/activemq/bin/activemq /etc/init.d/activemq”
MCollective requires activemq with “STOMP” support. Edit the activemq.xml inside the activemq directory and add the stomp option in it. You can get the sample from the puppet labs website.
Copy the contents and paste it into activemq.xml present inside the activemq directory. In my case /opt/activemq/config/activemq.xml
Now start the activemq service using the init script (symlink we created) inside the init.d.
For MCollective server we need to install two packages, mcollective-common and mcollective. Dowlnoad the latest packages from “http://downloads.puppetlabs.com/mcollective/” and install the packages.
The config file will be present in “/etc/mcollective/server.cfg”. Edit the file, stomp host should be the the machine where we have installed the activemq. Stomp port will be “6163” (can be changed by modifying activemq.xml file)
Also change modify the stomp user and password to the following,
plugin.stomp.user = mcollective
plugin.stomp.password = marionette
The above password can changed by modifying the activemq.xml file
And restart the mcollective service.
For Mcollective client, download and install mcollective-common mcollective-client packages, and edit the the client.cfg file present inside the /etc/mcollective folder.
Now we can use the “mco” command to check the connectivity. we can use mco find to find the mcollective servers.