[openstack-dev] [Congress][olso][oslo.messaging] Dynamically Determine Rabbit Transport URL?
Clint Byrum
clint at fewbar.com
Mon Feb 6 19:32:21 UTC 2017
Excerpts from Aimee Ukasick's message of 2017-02-06 12:57:28 -0600:
> Hi everyone - from the Congress standalone installation guide
> (http://docs.openstack.org/developer/congress/README.html#installing-congress):
>
> ---
> To use RabbitMQ with Congress, set the transport_url in the “From
> oslo.messaging” section according to your setup:
> transport_url = rabbit://$RABBIT_USERID:$RABBIT_PASSWORD@$RABBIT_HOST:5672
> ---
>
> Is there a CLI or API call to determine the Rabbit userID, password,
> host, and port from a running OpenStack installation? My colleague and I
> are working on standalone Congress installation scripts (bash), and we
> are trying to figure how to dynamically determine the RABBIT_USERID,
> RABBIT_PASSWORD, RABBIT_HOST, and port. We really don't want to resort
> to pulling the transport URL out of another service's conf file
> (nova.conf, heat.conf, keystone.conf, etc).
>
> There is a rabbitmqctl
> https://www.rabbitmq.com/man/rabbitmqctl.1.man.html but that doesn't
> have the commands for finding userID, password, host, and port.
Those conf files get it from the same place you should: Config
management. You need to inject it into your bash however you inject
details of the environment into anything else.
More information about the OpenStack-dev
mailing list