Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

add information on how to configure RabbitMQ to work with mcollective #34

Closed
wants to merge 7 commits into from

4 participants

@maguec

similar to the excellent information on configuring activemq, I've added some quick docs on how to configure RabbitMQ to work with mcollective.

@ripienaar

Thanks, sorry to be a pain but we need:

  • A ticket @ projects.puppetlabs.com in the mcollective project
  • You need to sign the CLA there so we can take this contribution, you can see a link at the top that lets you sign it

there's some ActiveMQ changes in here too we'd need to remove those for this commit to be accepted based on the description.

I am not sure about adding the jetty stuff to the sample xml files since they behave weirdly for some people if their packages dont deliver those XML files, or in weird locations etc so I've been keeping things as minimal so it more or less Just Works for as many people as possible

@puppetcla

Waiting for CLA signature by @maguec

@maguec - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppetlabs.com/

Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppetlabs.com/community/trivial_patch_exemption.html

@ploubser
Owner

Closing since we haven't had feedback in a year. Feel free to open it up again if needed.

@ploubser ploubser closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
7 ext/activemq/examples/multi-broker-mesh/broker1-activemq.xml 100755 → 100644
@@ -6,6 +6,13 @@
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">
+ <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations">
+ <value>file:${activemq.base}/conf/credentials.properties</value>
+ </property>
+ </bean>
+
+
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="broker1" useJmx="true">
<!-- Destination specific policies using destination names or wildcards
this sets enableAudit = true on all topics, thus avoiding duplicates -->
View
8 ext/activemq/examples/multi-broker-mesh/broker2-activemq.xml 100755 → 100644
@@ -6,6 +6,14 @@
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">
+
+ <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations">
+ <value>file:${activemq.base}/conf/credentials.properties</value>
+ </property>
+ </bean>
+
+
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="broker2" useJmx="true">
<!-- Destination specific policies using destination names or wildcards
this sets enableAudit = true on all topics, thus avoiding duplicates -->
View
7 ext/activemq/examples/multi-broker-mesh/broker3-activemq.xml 100755 → 100644
@@ -6,6 +6,13 @@
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">
+ <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations">
+ <value>file:${activemq.base}/conf/credentials.properties</value>
+ </property>
+ </bean>
+
+
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="broker3" useJmx="true">
<!-- Destination specific policies using destination names or wildcards
this sets enableAudit = true on all topics, thus avoiding duplicates -->
View
7 ext/activemq/examples/single-broker/activemq.xml 100755 → 100644
@@ -6,6 +6,12 @@
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">
+ <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations">
+ <value>file:${activemq.base}/conf/credentials.properties</value>
+ </property>
+ </bean>
+
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" useJmx="true">
<managementContext>
<managementContext createConnector="false"/>
@@ -53,4 +59,5 @@
<transportConnector name="stomp" uri="stomp://0.0.0.0:6163"/>
</transportConnectors>
</broker>
+ <import resource="jetty.xml"/>
</beans>
View
25 ext/rabbitmq/README.md
@@ -0,0 +1,25 @@
+Installing RabbitMQ
+===================
+
+Prerequisites
+-------------
+
+Debian
+
+ sudo apt-get install -y erlang-base erlang-nox
+
+Software
+--------
+
+[Download from the official site](http://www.rabbitmq.com/download.html)
+
+
+Adding Users for Mcollective
+----------------------------
+ rabbitmq-plugins enable amqp_client
+ rabbitmq-plugins enable rabbitmq_stomp
+ rabbitmqctl add_user mcollective *<PASSWORD>*
+ rabbitmqctl set_user_tags mcollective administrator
+ rabbitmqctl set_permissions -p / mcollective ".*" ".*" ".*"
+
+restart RabbitMQ
View
6 ext/rabbitmq/examples/single-broker/rabbitmq.config
@@ -0,0 +1,6 @@
+%% Single broken configuration
+
+[
+ {rabbitmq_stomp, [{tcp_listeners, [{"0.0.0.0", 6163},
+ {"::1", 6163}]}]}
+].
Something went wrong with that request. Please try again.