From d9882467dadb52dac585e98f399d8841461e0847 Mon Sep 17 00:00:00 2001 From: David Hoese <david.hoese@ssec.wisc.edu> Date: Tue, 7 Jul 2020 15:48:25 -0500 Subject: [PATCH] Set rabbitmq user to "user" --- production/values-g16-grb.yaml | 1 + sidecars/cspp-geo-rabbit-init/declare_exchange.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/production/values-g16-grb.yaml b/production/values-g16-grb.yaml index bf80cfa..113491a 100644 --- a/production/values-g16-grb.yaml +++ b/production/values-g16-grb.yaml @@ -6,4 +6,5 @@ grbProcessor: grbNotifier: rabbitOut: host: "geosphere-rabbit-rabbitmq" + user: "user" passwordSecret: "geosphere-rabbit-rabbitmq" \ No newline at end of file diff --git a/sidecars/cspp-geo-rabbit-init/declare_exchange.py b/sidecars/cspp-geo-rabbit-init/declare_exchange.py index 1c13c9a..26edfd7 100644 --- a/sidecars/cspp-geo-rabbit-init/declare_exchange.py +++ b/sidecars/cspp-geo-rabbit-init/declare_exchange.py @@ -9,6 +9,11 @@ if __name__ == "__main__": rabbitmq_host = os.getenv("RABBITMQ_HOST") exchange = os.getenv("RABBITMQ_EXCHANGE_NAME") exchange_type = os.getenv("RABBITMQ_EXCHANGE_TYPE", "topic") + print(f"USER: {user}") + print("PASSWORD: {}".format(password if password == "guest" else "<not guest>")) + print(f"HOST: {rabbitmq_host}") + print(f"EXCHANGE: {exchange}") + print(f"EXCHANGE TYPE: {exchange_type}") credentials = pika.PlainCredentials(user, password) conn_params = pika.ConnectionParameters(host=rabbitmq_host, -- GitLab