blob: 85808d10d42e87338bf7ce3f6c091b4e61496979 [file] [log] [blame]
Jakub Latusek2776cf82020-10-21 13:36:29 +02001{{/*
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -04002# 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 Latusek2776cf82020-10-21 13:36:29 +020015*/}}
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -040016
17DATABASES = {
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}
28BROKER_URL = 'amqp://{}:{}@{}:{}/{}'.format(
29 "{{ .Values.config.rabbitmqUser }}",
30 "{{ .Values.config.rabbitmqPassword }}",
31 "localhost",
32 "5672",
33 "{{ .Values.config.rabbitmqVhost }}")
34CHANNEL_LAYERS = {
35 'default': {'BACKEND': 'asgi_amqp.AMQPChannelLayer',
36 'ROUTING': 'awx.main.routing.channel_routing',
37 'CONFIG': {'url': BROKER_URL}}
38}