Convert all RabbitMQ configs to nested

Change-Id: Ifd74ff24545a4d1019a4918b403b7b7b36237208
This commit is contained in:
Yuriy Taraday 2016-10-06 13:03:14 +03:00
parent 7d633af3ab
commit 03cdf01d93
4 changed files with 9 additions and 8 deletions

View File

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

View File

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

View File

@ -1,10 +1,10 @@
[ [
{rabbit, [ {rabbit, [
{tcp_listeners, [ {tcp_listeners, [
{"0.0.0.0", {{ rabbitmq_port }} } {"0.0.0.0", {{ rabbitmq.port }} }
]}, ]},
{default_user, <<"{{ rabbitmq_user }}">>}, {default_user, <<"{{ rabbitmq.user }}">>},
{default_pass, <<"{{ rabbitmq_password }}">>}, {default_pass, <<"{{ rabbitmq.password }}">>},
{cluster_partition_handling, autoheal} {cluster_partition_handling, autoheal}
]} ]}
]. ].

View File

@ -1,7 +1,7 @@
service: service:
name: rabbitmq name: rabbitmq
ports: ports:
- {{ rabbitmq_port }} - {{ rabbitmq.port }}
containers: containers:
- name: rabbitmq - name: rabbitmq
image: rabbitmq image: rabbitmq