Skip to content

Instantly share code, notes, and snippets.

@arnobroekhof
Created April 8, 2013 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnobroekhof/5340119 to your computer and use it in GitHub Desktop.
Save arnobroekhof/5340119 to your computer and use it in GitHub Desktop.
activemq.xml.erb --> mcollective
<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>
<!-- "admins" group can do anything. -->
<authorizationEntry queue=">" write="admins" read="admins" admin="admins" />
<authorizationEntry topic=">" write="admins" read="admins" admin="admins" />
<%- @collectives.each do |collective| -%>
<authorizationEntry topic="<%= collective %>.>" write="mcollective,admins,<%= collective %>-admins" read="mcollective,admins,<%= collective %>-admins" admin="mcollective,admins,<%= collective %>-admins" />
<authorizationEntry queue="<%= collective %>.>" write="mcollective,admins,<%= collective %>-admins" read="mcollective,admins,<%= collective %>-admins" admin="mcollective,admins,<%= collective %>-admins" />
<%- end -%>
<authorizationEntry topic="ActiveMQ.Advisory.>" read="everyone" write="everyone" admin="everyone"/>
</authorizationEntries>
</authorizationMap>
</map>
</authorizationPlugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment