Files
openstack-operator/openstack_operator/templates/horizon/configmap.yml.j2
okozachenko be4e5eee89 Add Horizon Dockerfile and operator
Change-Id: I9bab4c3a66a33a4a8289509eb8c93232d56dfe6a
2020-04-29 18:26:31 -04:00

40 lines
1.1 KiB
Django/Jinja

---
# Copyright 2020 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: v1
kind: ConfigMap
metadata:
name: horizon-{{ name }}
namespace: default
data:
local_settings.py: |
import os
from openstack_dashboard.settings import HORIZON_CONFIG
ALLOWED_HOSTS = ['*']
SECRET_KEY = os.getenv('SECRET_KEY')
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'mcrouter-memcached-horizon-{{ name }}:11211',
},
}
OPENSTACK_KEYSTONE_URL = '{{ auth_url }}'
OPENSTACK_NEUTRON_NETWORK['enable_ha_router'] = True