configuring stomp client with authentication

263 views
Skip to first unread message

Miles Monteleone

unread,
Aug 17, 2012, 6:24:39 PM8/17/12
to puppet...@googlegroups.com
I'm trying to configure my puppetmaster to use activemq for message queueing. ActiveMQ is installed on the same machine as puppet-server and is being used for MCollective. Since I am requiring authentication for MCollective, I need to set a username/password in puppet.conf. I do not see any parameters that control this, but I found this entry in the puppet.conf man page:

queue_source ++++++++++++

Which type of queue to use for asynchronous processing. If your stomp server requires authentication, you can include it in the URI as long as your stomp client library is at least 1.1.1

How do I include auth in the stomp URI?

Also, suppose I want to not have auth for the local puppet stomp connection. Can I turn that off in the activemq config? I couldn't find a way to do it :(


Thanks

-Miles

R.I.Pienaar

unread,
Aug 18, 2012, 3:28:24 AM8/18/12
to puppet...@googlegroups.com


----- Original Message -----
> From: "Miles Monteleone" <scratc...@gmail.com>
> To: puppet...@googlegroups.com
> Sent: Friday, August 17, 2012 11:24:39 PM
> Subject: [Puppet Users] configuring stomp client with authentication
>
> I'm trying to configure my puppetmaster to use activemq for message
> queueing. ActiveMQ is installed on the same machine as puppet-server
> and is being used for MCollective. Since I am requiring
> authentication for MCollective, I need to set a username/password in
> puppet.conf. I do not see any parameters that control this, but I
> found this entry in the puppet.conf man page:
>
>
> queue_source ++++++++++++
>
> Which type of queue to use for asynchronous processing. If your stomp
> server requires authentication, you can include it in the URI as
> long as your stomp client library is at least 1.1.1
>
> How do I include auth in the stomp URI?

It's a standard URI so that would be stomp://user:pa...@your.stomp.host:port

>
> Also, suppose I want to not have auth for the local puppet stomp
> connection. Can I turn that off in the activemq config? I couldn't
> find a way to do it :(

your activemq.xml would have a section for <users>...</users> if auth
is enabled

Miles Monteleone

unread,
Sep 11, 2012, 4:07:13 PM9/11/12
to puppet...@googlegroups.com
What if I want 2 queues with 2 different usernames and passwords? For instance, I have 1 activemq instance running on my puppet server, serving a queue for Mcollective. Can I configure that instance to serve a second queue, with a different username/password?


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.


R.I.Pienaar

unread,
Sep 11, 2012, 4:22:25 PM9/11/12
to puppet...@googlegroups.com


----- Original Message -----
> From: "Miles Monteleone" <scratc...@gmail.com>
> To: puppet...@googlegroups.com
> Sent: Tuesday, September 11, 2012 9:07:13 PM
> Subject: Re: [Puppet Users] configuring stomp client with authentication
>
>
> What if I want 2 queues with 2 different usernames and passwords? For
> instance, I have 1 activemq instance running on my puppet server,
> serving a queue for Mcollective. Can I configure that instance to
> serve a second queue, with a different username/password?

yes, one activemq can serve many queues and users. Not directly
applicable but the mcollective site has docs on adding users and
writing access rules for different users on an ActiveMQ instance

http://docs.puppetlabs.com/mcollective/reference/integration/activemq_security.html
Reply all
Reply to author
Forward
0 new messages