Browse Source

Convert all RabbitMQ configs to nested

Change-Id: Ifd74ff24545a4d1019a4918b403b7b7b36237208
Yuriy Taraday 2 years ago
parent
commit
03cdf01d93

+ 4
- 3
service/files/defaults.yaml View File

@@ -1,4 +1,5 @@
1 1
 configs:
2
-    rabbitmq_port: 5672
3
-    rabbitmq_password: password
4
-    rabbitmq_user: rabbitmq
2
+  rabbitmq:
3
+    port: 5672
4
+    password: password
5
+    user: rabbitmq

+ 1
- 1
service/files/erlang.cookie View File

@@ -1 +1 @@
1
-{{ rabbitmq_password }}
1
+{{ rabbitmq.password }}

+ 3
- 3
service/files/rabbitmq.config.j2 View File

@@ -1,10 +1,10 @@
1 1
 [
2 2
   {rabbit, [
3 3
     {tcp_listeners, [
4
-      {"0.0.0.0", {{ rabbitmq_port }} }
4
+      {"0.0.0.0", {{ rabbitmq.port }} }
5 5
     ]},
6
-    {default_user, <<"{{ rabbitmq_user }}">>},
7
-    {default_pass, <<"{{ rabbitmq_password }}">>},
6
+    {default_user, <<"{{ rabbitmq.user }}">>},
7
+    {default_pass, <<"{{ rabbitmq.password }}">>},
8 8
     {cluster_partition_handling, autoheal}
9 9
   ]}
10 10
 ].

+ 1
- 1
service/rabbitmq.yaml View File

@@ -1,7 +1,7 @@
1 1
 service:
2 2
   name: rabbitmq
3 3
   ports:
4
-    - {{ rabbitmq_port }}
4
+    - {{ rabbitmq.port }}
5 5
   containers:
6 6
     - name: rabbitmq
7 7
       image: rabbitmq

Loading…
Cancel
Save