RabbitMQ for OC with gen-pass [kubernetes]
Related-Bug: PROD-24667
Change-Id: I1c089f00e3f570ec4005a766e5bfbf6339bcc675
diff --git a/kubernetes/files/kube-addons/contrail/contrail.yaml b/kubernetes/files/kube-addons/contrail/contrail.yaml
index ac7bcf1..a3a263b 100644
--- a/kubernetes/files/kube-addons/contrail/contrail.yaml
+++ b/kubernetes/files/kube-addons/contrail/contrail.yaml
@@ -1,4 +1,5 @@
{%- from "kubernetes/map.jinja" import common with context -%}
+{%- from "kubernetes/map.jinja" import master with context -%}
---
apiVersion: apps/v1beta2
@@ -46,6 +47,10 @@
env:
- name: RABBITMQ_ERLANG_COOKIE
value: {{ common.addons.get('contrail',{}).get('rabbitmq_erlang_cookie',"YTQMGYEHFATZPDKPOCXX") }}
+ - name: RABBITMQ_DEFAULT_USER
+ value: {{ master.network.get('opencontrail',{}).get('message_queue',{}).get('user',"guest") }}
+ - name: RABBITMQ_DEFAULT_PASS
+ value: {{ master.network.get('opencontrail',{}).get('message_queue',{}).get('password',"guest") }}
- name: opencontrail-controller
image: {{ common.addons.opencontrail.controller.image }}