Installing and configuring ActiveMQ for MCollective (insecure configuration)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "activemq::default" | |
version = node['activemq']['version'] | |
activemq_home = "#{node['activemq']['home']}/apache-activemq-#{version}" | |
cookbook_file "#{activemq_home}/conf/activemq.xml" do | |
source "activemq.xml" | |
mode "0644" | |
owner "root" | |
group "root" | |
notifies :restart, 'service[activemq]' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> | |
<managementContext> | |
<managementContext createConnector="false"/> | |
</managementContext> | |
<plugins> | |
<statisticsBrokerPlugin/> | |
<simpleAuthenticationPlugin> | |
<users> | |
<authenticationUser username="mcollective" password="marionette" groups="mcollective,everyone"/> | |
<authenticationUser username="admin" password="secret" groups="mcollective,admin,everyone"/> | |
</users> | |
</simpleAuthenticationPlugin> | |
<authorizationPlugin> | |
<map> | |
<authorizationMap> | |
<authorizationEntries> | |
<authorizationEntry queue=">" write="admins" read="admins" admin="admins" /> | |
<authorizationEntry topic=">" write="admins" read="admins" admin="admins" /> | |
<authorizationEntry topic="mcollective.>" write="mcollective" read="mcollective" admin="mcollective" /> | |
<authorizationEntry topic="mcollective.>" write="mcollective" read="mcollective" admin="mcollective" /> | |
<authorizationEntry topic="ActiveMQ.Advisory.>" read="everyone" write="everyone" admin="everyone"/> | |
</authorizationEntries> | |
</authorizationMap> | |
</map> | |
</authorizationPlugin> | |
</plugins> | |
<systemUsage> | |
<systemUsage> | |
<memoryUsage> | |
<memoryUsage limit="20 mb"/> | |
</memoryUsage> | |
<storeUsage> | |
<storeUsage limit="1 gb" name="foo"/> | |
</storeUsage> | |
<tempUsage> | |
<tempUsage limit="100 mb"/> | |
</tempUsage> | |
</systemUsage> | |
</systemUsage> | |
<transportConnectors> | |
<transportConnector name="openwire" uri="tcp://0.0.0.0:6166"/> | |
<transportConnector name="stomp" uri="stomp://0.0.0.0:6163"/> | |
</transportConnectors> | |
</broker> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment