Browse Source

Ports configuration refactoring

Ports configuration has been changed:

before:

  port: 123:3333

after:

  port:
    cont: 123
    node: 3333

Change-Id: Ifaf713268cd9044939740fae008981599dbb285b
Depends-On: I54ab8dd02fc88b821a1f0d05c08f98b618730150
Andrey Pavlov 2 years ago
parent
commit
a3b8ac92b8
3 changed files with 5 additions and 4 deletions
  1. 3
    2
      service/files/defaults.yaml
  2. 1
    1
      service/files/rabbitmq.config.j2
  3. 1
    1
      service/rabbitmq.yaml

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

@@ -1,6 +1,7 @@
1 1
 configs:
2 2
   rabbitmq:
3
-    port: 5672
4
-    external_port: 32672
3
+    port:
4
+      cont: 5672
5
+      node: 32672
5 6
     password: password
6 7
     user: rabbitmq

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

@@ -1,7 +1,7 @@
1 1
 [
2 2
   {rabbit, [
3 3
     {tcp_listeners, [
4
-      {"0.0.0.0", {{ rabbitmq.port }} }
4
+      {"0.0.0.0", {{ rabbitmq.port.cont }} }
5 5
     ]},
6 6
     {default_user, <<"{{ rabbitmq.user }}">>},
7 7
     {default_pass, <<"{{ rabbitmq.password }}">>},

+ 1
- 1
service/rabbitmq.yaml View File

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

Loading…
Cancel
Save