Jakub Latusek | 2776cf8 | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 1 | {{/* |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 2 | # Copyright © 2019 Bell Canada |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
Jakub Latusek | 2776cf8 | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 15 | */}} |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 16 | |
| 17 | DATABASES = { |
| 18 | 'default': { |
| 19 | 'ATOMIC_REQUESTS': True, |
| 20 | 'ENGINE': 'awx.main.db.profiled_pg', |
| 21 | 'NAME': "{{ .Values.config.postgresDB }}", |
| 22 | 'USER': "{{ .Values.config.postgresUser }}", |
| 23 | 'PASSWORD': "{{ .Values.config.postgresPassword }}", |
| 24 | 'HOST': "awx-postgresql", |
| 25 | 'PORT': "5432", |
| 26 | } |
| 27 | } |
| 28 | BROKER_URL = 'amqp://{}:{}@{}:{}/{}'.format( |
| 29 | "{{ .Values.config.rabbitmqUser }}", |
| 30 | "{{ .Values.config.rabbitmqPassword }}", |
| 31 | "localhost", |
| 32 | "5672", |
| 33 | "{{ .Values.config.rabbitmqVhost }}") |
| 34 | CHANNEL_LAYERS = { |
| 35 | 'default': {'BACKEND': 'asgi_amqp.AMQPChannelLayer', |
| 36 | 'ROUTING': 'awx.main.routing.channel_routing', |
| 37 | 'CONFIG': {'url': BROKER_URL}} |
| 38 | } |