Table of contents for Adventures with Mcollective
- Adventures with MCollective
- Mcollective on Centos
- Create a local repository for MCollective and ActiveMQ
OK, so I might have been a bit hasty to dismiss Centos in my last post – a couple of people have contacted me and told me about additional repos that I can use for rubygems etc – so as a brief interlude, here’s the instructions for getting MCollective and ActiveMQ up and running on Centos 5:
Enable EPEL:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
Enable ELFF:
rpm -Uvh http://download.elff.bravenet.com/5/i386/elff-release-5-3.noarch.rpm
Install ruby and dependencies:
yum install rubygems rubygem-stomp jpackage java-1.6.0-openjdk
Install ActiveMQ:
for a in tanukiwrapper-3.2.3-1jpp.i386.rpm activemq-5.4.0-2.el5.noarch.rpm activemq-info-provider-5.4.0-2.el5.noarch.rpm;do rpm -Uvh http://puppetlabs.com/downloads/mcollective/$a;done
Configure ActiveMQ:
Edit /etc/activemq/activemq-wrapper.conf around line 85 to show:
wrapper.app.parameter.3-xbean:mcollective.xml
Create /etc/activemq/mcollective.xml as follows:
<beans
xmlns=”http://www.springframework.org/schema/beans”
xmlns:amq=”http://activemq.apache.org/schema/core”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd”><broker xmlns=”http://activemq.apache.org/schema/core” brokerName=”localhost” useJmx=”true”>
<transportConnectors>
<transportConnector name=”openwire” uri=”tcp://0.0.0.0:6166″/>
<transportConnector name=”stomp” uri=”stomp://0.0.0.0:6163″/>
</transportConnectors><plugins>
<simpleAuthenticationPlugin>
<users>
<authenticationUser username=”mcollective” password=”marionette” groups=”systemusers,everyone”/>
</users>
</simpleAuthenticationPlugin><authorizationPlugin>
<map>
<authorizationMap>
<authorizationEntries>
<authorizationEntry topic=”mcollective.>” write=”systemusers” read=”systemusers” admin=”systemusers” />
<authorizationEntry topic=”ActiveMQ.Advisory.>” read=”everyone,all” write=”everyone,all” admin=”everyone,all”/>
</authorizationEntries>
</authorizationMap>
</map>
</authorizationPlugin>
</plugins>
</broker>
</beans>
And finally, install Mcollective from the RPMS on the website:
- On all systems:
- rpm -Uvh http://mcollective.googlecode.com/files/mcollective-common-0.4.4-1.el5.noarch.rpm
- On the node that you want to run your queries from:
- http://mcollective.googlecode.com/files/mcollective-client-0.4.4-1.el5.noarch.rpm
- On the nodes that you want to query/control:
- rpm -Uvh http://mcollective.googlecode.com/files/mcollective-0.4.4-1.el5.noarch.rpm
Make sure you update /etc/mcollective/server.cfg and /etc/mcollective/client.cfg to point to the correct IP Address/Server and use the right credentials. If you want to make any of the changes suggested on the MCollective Wiki for ActiveMQ security, then simply update the mcollective.xml file in /etc/activemq/ and restart the service.
The joy of using Active MQ for middleware is that you can install MCollective Client on an Ubuntu Laptop and use it to query Centos Servers!
You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

Pingback: Tweets that mention MCollective and ActiveMQ Centos 5 install | Three Drunken SysAds -- Topsy.com
I had to place the section above the section for this configuration to work with activemq 5.4.0.
Since mcollective has been moved to puppetlabs.com, the correct for loop would be:
for a in tanukiwrapper-3.2.3-1jpp.i386.rpm activemq-5.4.0-2.el5.noarch.rpm activemq-info-provider-5.4.0-2.el5.noarch.rpm;do rpm -Uvh http://puppetlabs.com/downloads/mcollective/$a;done
Thanks Grayson, I’ve updated the article to reflect this.
Pingback: Mcollective and RabbitMQ on Centos | Three Drunken SysAds