Environment variables to configure RabbitMQ

8/15/2019

RabbitMQ can be configured using definitions.json and/or advanced.config. Is there a way to reference the Helm/Linux Environment Variables?

advanced.config excerpt:

    [{shovels,
      [%% A named shovel worker.
         {my_shovel,
          [
           {sources,
            [%% URI(s) and pre-declarations for all source broker(s).
             {brokers, [RMQ_URL]},
             {declarations, []}
            ]},```
-- emachine
erlang
json
kubernetes-helm
rabbitmq

1 Answer

8/24/2019

You can insert your code into rabbitmq's bash start file, and replace variable with environment variable,

-- Chen Yu
Source: StackOverflow