github.com/inflatablewoman/deis@v1.0.1-0.20141111034523-a4511c46a6ce/controller/templates/confd_settings.py (about) 1 # security keys and auth tokens 2 SECRET_KEY = '{{ .deis_controller_secretKey }}' 3 BUILDER_KEY = '{{ .deis_controller_builderKey }}' 4 5 # scheduler settings 6 SCHEDULER_MODULE = '{{ or (.deis_controller_schedulerModule) "fleet" }}' 7 SCHEDULER_TARGET = '{{ or (.deis_controller_schedulerTarget) "/var/run/fleet.sock" }}' 8 try: 9 SCHEDULER_OPTIONS = dict('{{ or (.deis_controller_schedulerOptions) "{}" }}') 10 except: 11 SCHEDULER_OPTIONS = {} 12 13 # base64-encoded SSH private key to facilitate current version of "deis run" 14 SSH_PRIVATE_KEY = """{{ or (.deis_platform_sshPrivateKey) "" }}""" 15 16 # platform domain must be provided 17 DEIS_DOMAIN = '{{ .deis_platform_domain }}' 18 19 # use the private registry module 20 REGISTRY_MODULE = 'registry.private' 21 REGISTRY_URL = '{{ .deis_registry_protocol }}://{{ .deis_registry_host }}:{{ .deis_registry_port }}' # noqa 22 REGISTRY_HOST = '{{ .deis_registry_host }}' 23 REGISTRY_PORT = '{{ .deis_registry_port }}' 24 25 # default to sqlite3, but allow postgresql config through envvars 26 DATABASES = { 27 'default': { 28 'ENGINE': 'django.db.backends.{{ .deis_database_engine }}', 29 'NAME': '{{ .deis_database_name }}', 30 'USER': '{{ .deis_database_user }}', 31 'PASSWORD': '{{ .deis_database_password }}', 32 'HOST': '{{ .deis_database_host }}', 33 'PORT': '{{ .deis_database_port }}', 34 } 35 } 36 37 # configure cache 38 CACHE_URL = 'redis://{{ .deis_cache_host }}:{{ .deis_cache_port }}/0' 39 40 # move log directory out of /app/deis 41 DEIS_LOG_DIR = '/data/logs' 42 43 {{ if .deis_controller_registrationEnabled }} 44 REGISTRATION_ENABLED = bool({{ .deis_controller_registrationEnabled }}) 45 {{ end }} 46 47 {{ if .deis_controller_webEnabled }} 48 WEB_ENABLED = bool({{ .deis_controller_webEnabled }}) 49 {{ end }}